tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 8c456fb7974bb0a62dd2f542030646f1fe957095
parent 25fe7c42713b9f44af75864e94362ad7463ed78b
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date:   Mon,  8 Dec 2025 15:01:20 +0000

Bug 1994918 - Bypass windows app sdk handling of WM_NCLBUTTONDBLCLK. r=gstoll,win-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D275358

Diffstat:
Mwidget/windows/nsWindow.cpp | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp @@ -5534,6 +5534,13 @@ bool nsWindow::ProcessMessageInternal(UINT msg, WPARAM& wParam, LPARAM& lParam, result = DispatchMouseEvent(eMouseUp, 0, lParamToClient(lParam), false, MouseButton::ePrimary, MOUSE_INPUT_SOURCE()); DispatchPendingEvents(); + // DefWindowProc handles vertical expansion, but the Windows App SDK + // breaks it, see bug 1994918. So bypass the app sdk by calling into the + // default proc here. + if (!result) { + *aRetValue = DefWindowProcW(mWnd, msg, wParam, lParam); + result = true; + } break; case WM_NCLBUTTONDOWN: {