merging patch to trunk for bug 158380 - The browser desktop icon doesn't work when launching mozilla -mail -turbo. r=jewell,morse,ssu sr=jag

This commit is contained in:
ssu%netscape.com 2003-02-24 18:39:05 +00:00
parent 1e15d1cd0f
commit 2d0ab6461d

View File

@ -2482,6 +2482,16 @@ nsNativeAppSupportWin::StartServerMode() {
// We dont have to anything anymore. The native UI
// will create the window
return NS_OK;
} else {
// Sometimes a window will have been opened even though mShouldShowUI is false
// (e.g., mozilla -mail -turbo). Detect that by testing whether there's a
// window already open.
nsCOMPtr<nsIDOMWindowInternal> win;
GetMostRecentWindow( 0, getter_AddRefs( win ) );
if ( win ) {
// Window already opened, don't need this special Nav window.
return NS_OK;
}
}
// Since native UI wont create any window, we create a hidden window