158380 for OS/2
git-svn-id: svn://10.0.0.236/trunk@138387 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2296,6 +2296,16 @@ nsNativeAppSupportOS2::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
|
||||
|
||||
Reference in New Issue
Block a user