From fefde390b59f2ec472fcfd973ff6dea20657b06d Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Fri, 8 Oct 1999 03:31:41 +0000 Subject: [PATCH] hiddenWindow loads its full glory only on the Mac. speeds launch time for everyone else. r:hyatt git-svn-id: svn://10.0.0.236/trunk@50194 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsAppShellService.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/mozilla/xpfe/appshell/src/nsAppShellService.cpp b/mozilla/xpfe/appshell/src/nsAppShellService.cpp index d162004f134..b3939975127 100644 --- a/mozilla/xpfe/appshell/src/nsAppShellService.cpp +++ b/mozilla/xpfe/appshell/src/nsAppShellService.cpp @@ -265,22 +265,21 @@ void nsAppShellService::CreateHiddenWindow() nsresult rv; nsIURI* url = nsnull; -#ifndef NECKO - rv = NS_NewURL(&url, "chrome://global/content/hiddenWindow.xul"); -#else +#if XP_MAC rv = NS_NewURI(&url, "chrome://global/content/hiddenWindow.xul"); -#endif if (NS_SUCCEEDED(rv)) { nsCOMPtr newWindow; - #if XP_MAC rv = JustCreateTopWindow(nsnull, url, PR_FALSE, PR_FALSE, 0, nsnull, 0, 0, getter_AddRefs(newWindow)); - #else +#else + rv = NS_NewURI(&url, "about:blank"); + if (NS_SUCCEEDED(rv)) { + nsCOMPtr newWindow; rv = JustCreateTopWindow(nsnull, url, PR_FALSE, PR_FALSE, NS_CHROME_ALL_CHROME, nsnull, 100, 100, getter_AddRefs(newWindow)); - #endif +#endif if (NS_SUCCEEDED(rv)) { mHiddenWindow = newWindow; // RegisterTopLevelWindow(newWindow); -- Mac only