Bug #194315 --> for thunderbird, bring up mail chrome as part of ensure 1 window and not a browser window.

does not effect seamonkey builds
sr=bryner
a=sspitzer
This commit is contained in:
scott%scott-macgregor.org 2003-04-26 01:50:56 +00:00
parent fa163f8a45
commit d7df964f95

View File

@ -1231,7 +1231,15 @@ nsAppShellService::Ensure1Window(nsICmdLineService *aCmdLineService)
if (NS_SUCCEEDED(rv) && !tempString.IsEmpty())
PR_sscanf(tempString.get(), "%d", &height);
#ifdef MOZ_THUNDERBIRD
PRBool windowOpened = PR_FALSE;
rv = LaunchTask(NULL, height, width, &windowOpened);
if (NS_FAILED(rv) || !windowOpened)
rv = LaunchTask("mail", height, width, &windowOpened);
#else
rv = OpenBrowserWindow(height, width);
#endif
}
}
return rv;