r=pedemonte,sr=blizzard (platform specific), a=mkaply
Take a patch from nsNativeAppSupportWin so multiple firebird windows work
This commit is contained in:
mkaply%us.ibm.com 2003-11-25 22:38:39 +00:00
parent 37613c35ed
commit 6e1c205d83

View File

@ -2313,8 +2313,15 @@ nsNativeAppSupportOS2::OpenBrowserWindow( const char *args, PRBool newWindow ) {
return NS_OK;
} while ( PR_FALSE );
nsCOMPtr<nsICmdLineHandler> handler(do_GetService("@mozilla.org/commandlinehandler/general-startup;1?type=browser", &rv));
if (NS_FAILED(rv)) return rv;
nsXPIDLCString chromeUrlForTask;
rv = handler->GetChromeUrlForTask(getter_Copies(chromeUrlForTask));
if (NS_FAILED(rv)) return rv;
// Last resort is to open a brand new window.
return OpenWindow( "chrome://navigator/content", args );
return OpenWindow( chromeUrlForTask, args );
}
// This opens a special browser window for purposes of priming the pump for