richard pushed to branch base-browser-115.10.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits: bd81091e by hackademix at 2024-04-17T20:15:09+00:00 fixup! Bug 41918: Option to reuse last window size when letterboxing is enabled.
Bug 42500: Fix restored window size after startup maximization
- - - - -
2 changed files:
- browser/components/BrowserGlue.sys.mjs - toolkit/xre/nsAppRunner.cpp
Changes:
===================================== browser/components/BrowserGlue.sys.mjs ===================================== @@ -1600,6 +1600,13 @@ BrowserGlue.prototype = { return; }
+ // We don't want to mess up with RFP new window / letterboxing machinery. + if ( + Services.prefs.getBoolPref("privacy.resistFingerprinting", false) + ) { + return; + } + let store = Services.xulStore; let getValue = attr => store.getValue(AppConstants.BROWSER_CHROME_URL, "main-window", attr);
===================================== toolkit/xre/nsAppRunner.cpp ===================================== @@ -287,6 +287,7 @@ static const char kPrefThemeId[] = "extensions.activeThemeID"; static const char kPrefBrowserStartupBlankWindow[] = "browser.startup.blankWindow"; static const char kPrefPreXulSkeletonUI[] = "browser.startup.preXulSkeletonUI"; +static const char kPrefResistFingerprinting[] = "privacy.resistFingerprinting"; #endif // defined(XP_WIN)
#if defined(MOZ_WIDGET_GTK) @@ -2260,6 +2261,7 @@ static void ReflectSkeletonUIPrefToRegistry(const char* aPref, void* aData) { bool shouldBeEnabled = Preferences::GetBool(kPrefPreXulSkeletonUI, false) && Preferences::GetBool(kPrefBrowserStartupBlankWindow, false) && + !Preferences::GetBool(kPrefResistFingerprinting, false) && LookAndFeel::DrawInTitlebar(); if (shouldBeEnabled && Preferences::HasUserValue(kPrefThemeId)) { nsCString themeId;
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/bd81091e...
tbb-commits@lists.torproject.org