Bug 957209 - Don't set ewindowtype_sheet if parent is hidden window. r=smichaud.

This commit is contained in:
stefanh@inbox.com 2014-01-18 12:49:47 +01:00
parent 029b2ba6b4
commit 84a45c987a

View File

@ -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)