Bug #230392 --> minor thunderbird specific fix.

Create new window (if none exists) when clicking the thunderbird dock icon on Mac OS X
instead of trying to create an instance of navigator.xul.
This commit is contained in:
scott%scott-macgregor.org 2004-09-28 22:03:34 +00:00
parent 31962091d1
commit bcc854a129

View File

@ -1094,7 +1094,7 @@ nsAppShellService::CreateStartupState(PRInt32 aWindowWidth, PRInt32 aWindowHeigh
{
NS_ENSURE_ARG_POINTER(_retval);
nsresult rv;
#ifndef MOZ_THUNDERBIRD
nsCOMPtr<nsIPrefService> prefService(do_GetService(NS_PREFSERVICE_CONTRACTID));
if (!prefService)
return NS_ERROR_FAILURE;
@ -1121,6 +1121,12 @@ nsAppShellService::CreateStartupState(PRInt32 aWindowWidth, PRInt32 aWindowHeigh
}
NS_FREE_XPCOM_ALLOCATED_POINTER_ARRAY(childCount, childArray);
#else
PRBool windowOpened;
rv = LaunchTask("mail", aWindowHeight, aWindowWidth, &windowOpened);
if (NS_SUCCEEDED(rv) && windowOpened)
*_retval = PR_TRUE;
#endif
return NS_OK;
}