[tor-commits] [Git][tpo/applications/mullvad-browser][mullvad-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:16:19 UTC 2024



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


Commits:
fee38504 by hackademix at 2024-04-17T20:15:58+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
=====================================
@@ -1581,6 +1581,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/mullvad-browser/-/commit/fee38504e9ef70e90e07cf2ac2cb5fa80d49f8e2

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/fee38504e9ef70e90e07cf2ac2cb5fa80d49f8e2
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/b1f9976c/attachment-0001.htm>


More information about the tor-commits mailing list