mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 957209 - Don't set ewindowtype_sheet if parent is hidden window. r=smichaud.
This commit is contained in:
parent
6c29c3731b
commit
ebf7ea0f97
@ -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