tor-browser

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

commit 40834c6a92e4d2e347bad49223335c94a57ece33
parent b3f78b103d823238752b5832190be7d4220582e1
Author: Cristina Horotan <chorotan@mozilla.com>
Date:   Sat, 15 Nov 2025 10:43:14 +0200

Revert "Bug 1993474 - remove WS_BORDER to fix border issues with Windows App SDK r=win-reviewers,handyman" for causing bc failures on browser_test_fullscreen_size.js

This reverts commit 569ef287466f189b92605efa761d6524a24037ff.

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

diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp @@ -2828,25 +2828,6 @@ void nsWindow::SetCustomTitlebar(bool aCustomTitlebar) { mCustomNonClient = aCustomTitlebar; - // Because of bug 1993474, we want to properly set the WS_BORDER style - // when the titlebar is turned on or off. - // - // The documentation for window styles says that most styles can't be - // modified after the window is created. Testing shows that WS_BORDER - // seems to be OK, but make sure this is the only style we try to change - // here. - const LONG_PTR actualStyle = ::GetWindowLongPtrW(mWnd, GWL_STYLE); - LONG_PTR newStyle = actualStyle; - if (mCustomNonClient) { - newStyle &= ~WS_BORDER; - } else { - newStyle |= WS_BORDER; - } - if (newStyle != actualStyle) { - VERIFY_WINDOW_STYLE(newStyle); - ::SetWindowLongPtrW(mWnd, GWL_STYLE, newStyle); - } - // Force a reflow of content based on the new client dimensions. if (mCustomNonClient) { UpdateNonClientMargins();