printf("___TRACE___BUG_79775___CP#023___\n");
static nsresult openWindow( const char *chrome, nsIMsgComposeParams *params ){  nsresult rv;printf("___TRACE___BUG_79775___CP#022___\n");  nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService("@mozilla.org/embedcomp/window-watcher;1"));  if (!wwatch)    return NS_ERROR_FAILURE;printf("___TRACE___BUG_79775___CP#023___\n");  nsCOMPtr<nsISupportsInterfacePointer> msgParamsWrapper =    do_CreateInstance(NS_SUPPORTS_INTERFACE_POINTER_CONTRACTID, &rv);  NS_ENSURE_SUCCESS(rv, rv);  msgParamsWrapper->SetData(params);  msgParamsWrapper->SetDataIID(&NS_GET_IID(nsIMsgComposeParams));printf("___TRACE___BUG_79775___CP#024___\n");  nsCOMPtr<nsIDOMWindow> newWindow;  rv = wwatch->OpenWindow(0, chrome && *chrome ? chrome : DEFAULT_CHROME,                 "_blank", "chrome,dialog=no,all", msgParamsWrapper,                 getter_AddRefs(newWindow));if (NS_FAILED(rv))printf("___TRACE___BUG_79775___CP#025___\n");elseprintf("___TRACE___BUG_79775___CP#026___\n");  return rv;}