return(rv);
nsAppShellService::CreateHiddenWindow(){  nsresult rv;  PRInt32 initialHeight = 100, initialWidth = 100;#if XP_MAC  const char* hiddenWindowURL = "chrome://global/content/hiddenWindow.xul";  PRUint32    chromeMask = 0;#else  const char* hiddenWindowURL = "about:blank";  PRUint32    chromeMask =  nsIWebBrowserChrome::CHROME_ALL;#endif  nsCOMPtr<nsIURI> url;  rv = NS_NewURI(getter_AddRefs(url), hiddenWindowURL);  if (NS_SUCCEEDED(rv))  {    nsCOMPtr<nsIXULWindow> newWindow;    rv = JustCreateTopWindow(nsnull, url, PR_FALSE, PR_FALSE,                        chromeMask, initialWidth, initialHeight,                        PR_TRUE, getter_AddRefs(newWindow));    if (NS_SUCCEEDED(rv)) {      mHiddenWindow = newWindow;#if XP_MAC      // hide the hidden window by launching it into outer space. This      // way, we can keep it visible and let the OS send it activates      // to keep menus happy. This will cause it to show up in window      // lists under osx, but I think that's ok.      nsCOMPtr<nsIBaseWindow> base ( do_QueryInterface(newWindow) );      if ( base ) {        base->SetPosition ( -32000, -32000 );        base->SetVisibility ( PR_TRUE );      }#endif            // Set XPConnect's fallback JSContext (used for JS Components)      // to the DOM JSContext for this thread, so that DOM-to-XPConnect      // conversions get the JSContext private magic they need to      // succeed.      SetXPConnectSafeContext();      // RegisterTopLevelWindow(newWindow); -- Mac only    }  }  NS_ASSERTION(NS_SUCCEEDED(rv), "HiddenWindow not created");  return(rv);}