Firefox · Widget
CVE-2025-1019
Logic Error in Widget
Overview
Medium
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Changed Functions
| Function | Change | Notes |
|---|---|---|
ifwidget/windows/nsWindow.cpp |
modified |
Files Changed
widget/windows/nsWindow.cpp
Patch
diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp
index 2d0d45afed5..ba71007965a 100644
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -1688,7 +1688,7 @@ void nsWindow::Show(bool aState) {
// layer. Remember not to set the SWP_NOZORDER
// flag as that might allow the taskbar to overlap
// the popup.
- flags |= SWP_NOACTIVATE;
+ flags |= SWP_NOACTIVATE | SWP_NOOWNERZORDER;
HWND owner = ::GetWindow(mWnd, GW_OWNER);
if (owner) {
// PopupLevel::Top popups should be above all else. All other
@@ -1696,8 +1696,9 @@ void nsWindow::Show(bool aState) {
// changing the owner's z-level relative to other windows.
if (mPopupLevel != PopupLevel::Top) {
::SetWindowPos(mWnd, owner, 0, 0, 0, 0, flags);
- ::SetWindowPos(owner, mWnd, 0, 0, 0, 0,
- SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
+ ::SetWindowPos(
+ owner, mWnd, 0, 0, 0, 0,
+ SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOOWNERZORDER);
} else {
::SetWindowPos(mWnd, HWND_TOP, 0, 0, 0, 0, flags);
}
Loading diff…
References
On This Page