[tbb-commits] [Git][tpo/applications/tor-browser][tor-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:14:30 UTC 2024



richard pushed to branch tor-browser-115.10.0esr-13.5-1 at The Tor Project / Applications / Tor Browser


Commits:
3cabcf78 by hackademix at 2024-04-17T20:05:27+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
=====================================
@@ -1685,6 +1685,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)
@@ -2262,6 +2263,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/3cabcf78349bd85023829085d7ae23d79b059f66

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/3cabcf78349bd85023829085d7ae23d79b059f66
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/tbb-commits/attachments/20240417/daf95d56/attachment-0001.htm>


More information about the tbb-commits mailing list