Bug 1878037 - Fix some regressions on alert windows. r=saschanaz,win-reviewers,rkraesig
commitf56dca9254554d430558872be24affc47a314e9c
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 12 Feb 2024 19:45:48 +0000 (12 19:45 +0000)
committerEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 12 Feb 2024 19:45:48 +0000 (12 19:45 +0000)
treed85c8fc4e2d52d5ba97e37013c0d1a1a2dbc3c79
parent0a93c03ada8c418ddc790c2ac5f31cefd926d543
Bug 1878037 - Fix some regressions on alert windows. r=saschanaz,win-reviewers,rkraesig

Bug 1870512 removed top level windows with WindowType::Popup, instead
replacing it with an "alert" feature for the only use of them that we
had.

Turns out that on Windows they need a bit more special handling than I
thought, so this patch uses the alert boolean to fix two regressions
(that alerts now create taskbar icons, and that they steal focus).

Remove mIsForMenuPopupFrame since that is now a synonym with
WindowType::Popup.

Remove also the dialog vs. toplevel difference of using
WS_EX_DLGMODALFRAME, since that doesn't seem to have an effect at all on
windows 10+.

Differential Revision: https://phabricator.services.mozilla.com/D200508
layout/xul/nsMenuPopupFrame.cpp
widget/InitData.h
widget/windows/nsWindow.cpp
widget/windows/nsWindow.h
xpfe/appshell/nsAppShellService.cpp