From da4c7e7ed675c3bf405668739c3012d140856109 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:34:42 +0200 Subject: Adding upstream version 126.0. Signed-off-by: Daniel Baumann --- xpfe/appshell/nsAppShellService.cpp | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'xpfe/appshell/nsAppShellService.cpp') diff --git a/xpfe/appshell/nsAppShellService.cpp b/xpfe/appshell/nsAppShellService.cpp index 1ac989aaa3..06f2476c25 100644 --- a/xpfe/appshell/nsAppShellService.cpp +++ b/xpfe/appshell/nsAppShellService.cpp @@ -579,26 +579,11 @@ nsresult nsAppShellService::JustCreateTopWindow( !!(aChromeMask & nsIWebBrowserChrome::CHROME_ALERT) && widgetInitData.mWindowType == widget::WindowType::Dialog; -#ifdef XP_MACOSX - // Mac OS X sheet support - // Adding CHROME_OPENAS_CHROME to sheetMask makes modal windows opened from - // nsGlobalWindow::ShowModalDialog() be dialogs (not sheets), while modal - // windows opened from nsPromptService::DoDialog() still are sheets. This - // fixes bmo bug 395465 (see nsCocoaWindow::StandardCreate() and - // nsCocoaWindow::SetModal()). - uint32_t sheetMask = nsIWebBrowserChrome::CHROME_OPENAS_DIALOG | - nsIWebBrowserChrome::CHROME_MODAL | - nsIWebBrowserChrome::CHROME_OPENAS_CHROME; - if (parent && (parent != mHiddenWindow) && - ((aChromeMask & sheetMask) == sheetMask)) { - widgetInitData.mWindowType = widget::WindowType::Sheet; - } -#endif - #if defined(XP_WIN) if (widgetInitData.mWindowType == widget::WindowType::TopLevel || - widgetInitData.mWindowType == widget::WindowType::Dialog) + widgetInitData.mWindowType == widget::WindowType::Dialog) { widgetInitData.mClipChildren = true; + } #endif // note default chrome overrides other OS chrome settings, but -- cgit v1.2.3