From 82d91c07dc31a0f1788e5c035c53a88e675b37cc Mon Sep 17 00:00:00 2001 From: "lordpixel%mac.com" Date: Sun, 6 Apr 2003 21:58:14 +0000 Subject: [PATCH] Fix for bug 90823, r=timeless, sr=sfraser --- xpfe/bootstrap/nsNativeAppSupportMac.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/xpfe/bootstrap/nsNativeAppSupportMac.cpp b/xpfe/bootstrap/nsNativeAppSupportMac.cpp index c4e83291b50b..825574d06424 100644 --- a/xpfe/bootstrap/nsNativeAppSupportMac.cpp +++ b/xpfe/bootstrap/nsNativeAppSupportMac.cpp @@ -382,17 +382,14 @@ nsNativeAppSupportMac::ReOpen() NS_WARNING("trying to open new window"); //use the bootstrap helpers to make the right kind(s) of window open nsresult rv = PR_FALSE; - nsCOMPtr cmdLineArgs(do_GetService(kCmdLineServiceCID, &rv)); + nsCOMPtr appShell(do_GetService(kAppShellServiceCID, &rv)); if (!rv) { - nsCOMPtr appShell(do_GetService(kAppShellServiceCID, &rv)); - if (!rv) - { - //PRBool openedAWindow; - // uncomment when bug 109811 is fixed - //appShell->DoCommandLines(cmdLineArgs, true, &openedAWindow); - } - } + PRBool openedAWindow = PR_FALSE; + appShell->CreateStartupState(nsIAppShellService::SIZE_TO_CONTENT, + nsIAppShellService::SIZE_TO_CONTENT, + &openedAWindow); + } } } // got window mediator