From ce6ff3ce6aa531c9a5bc5d16ad0dc8a37b5923ba Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Wed, 4 Aug 1999 23:26:21 +0000 Subject: [PATCH] enable non-chrome window.open for platforms other than Windows git-svn-id: svn://10.0.0.236/trunk@42226 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsWebShellWindow.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp index 0ffb4709e43..459a281bb4d 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp @@ -1472,7 +1472,6 @@ nsWebShellWindow::NewWebShell(PRUint32 aChromeMask, PRBool aVisible, return rv; } -#ifdef XP_PC // XXX: Won't work on any other platforms yet. Sigh. // We need to create a new top level window and then enter a nested // loop. Eventually the new window will be told that it has loaded, // at which time we know it is safe to spin out of the nested loop @@ -1480,12 +1479,7 @@ nsWebShellWindow::NewWebShell(PRUint32 aChromeMask, PRBool aVisible, // First push a nested event queue for event processing from netlib // onto our UI thread queue stack. - NS_WITH_SERVICE(nsIEventQueueService, eQueueService, kEventQueueServiceCID, &rv); - if (NS_FAILED(rv)) { - NS_ERROR("Unable to obtain queue service."); - return rv; - } - eQueueService->PushThreadEventQueue(); + appShell->PushThreadEventQueue(); nsCOMPtr urlObj; char * urlStr = "chrome://navigator/content/"; @@ -1540,8 +1534,8 @@ nsWebShellWindow::NewWebShell(PRUint32 aChromeMask, PRBool aVisible, newWindow->GetLockedState(locked); } - // Get rid of the nested UI thread queue used for netlib, and release the event queue service. - eQueueService->PopThreadEventQueue(); + // Get rid of the nested UI thread queue used for netlib + appShell->PopThreadEventQueue(); subshell->Spindown(); NS_RELEASE(subshell); @@ -1558,7 +1552,6 @@ nsWebShellWindow::NewWebShell(PRUint32 aChromeMask, PRBool aVisible, return rv; } } -#endif // XP_PC return rv; }