[tor-commits] [Git][tpo/applications/tor-browser][base-browser-115.10.0esr-13.5-1] fixup! Bug 41918: Option to reuse last window size when letterboxing is enabled.

richard (@richard) git at gitlab.torproject.org
Wed Apr 17 20:15:31 UTC 2024



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/bd81091ef1275f97c297acd9d9cfea9f63c945a9

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/bd81091ef1275f97c297acd9d9cfea9f63c945a9
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240417/0f7496ed/attachment-0001.htm>


More information about the tor-commits mailing list