mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 957209 - Don't set ewindowtype_sheet if parent is hidden window. r=smichaud.
This commit is contained in:
parent
029b2ba6b4
commit
84a45c987a
@ -527,8 +527,11 @@ nsAppShellService::JustCreateTopWindow(nsIXULWindow *aParent,
|
||||
uint32_t sheetMask = nsIWebBrowserChrome::CHROME_OPENAS_DIALOG |
|
||||
nsIWebBrowserChrome::CHROME_MODAL |
|
||||
nsIWebBrowserChrome::CHROME_OPENAS_CHROME;
|
||||
if (parent && ((aChromeMask & sheetMask) == sheetMask))
|
||||
if (parent &&
|
||||
(parent != mHiddenWindow && parent != mHiddenPrivateWindow) &&
|
||||
((aChromeMask & sheetMask) == sheetMask)) {
|
||||
widgetInitData.mWindowType = eWindowType_sheet;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(XP_WIN)
|
||||
|
Loading…
Reference in New Issue
Block a user