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

Commits:

2 changed files:

Changes:

  • browser/components/BrowserGlue.sys.mjs
    ... ... @@ -1581,6 +1581,13 @@ BrowserGlue.prototype = {
    1581 1581
           return;
    
    1582 1582
         }
    
    1583 1583
     
    
    1584
    +    // We don't want to mess up with RFP new window / letterboxing machinery.
    
    1585
    +    if (
    
    1586
    +      Services.prefs.getBoolPref("privacy.resistFingerprinting", false)
    
    1587
    +    ) {
    
    1588
    +      return;
    
    1589
    +    }
    
    1590
    +
    
    1584 1591
         let store = Services.xulStore;
    
    1585 1592
         let getValue = attr =>
    
    1586 1593
           store.getValue(AppConstants.BROWSER_CHROME_URL, "main-window", attr);
    

  • toolkit/xre/nsAppRunner.cpp
    ... ... @@ -287,6 +287,7 @@ static const char kPrefThemeId[] = "extensions.activeThemeID";
    287 287
     static const char kPrefBrowserStartupBlankWindow[] =
    
    288 288
         "browser.startup.blankWindow";
    
    289 289
     static const char kPrefPreXulSkeletonUI[] = "browser.startup.preXulSkeletonUI";
    
    290
    +static const char kPrefResistFingerprinting[] = "privacy.resistFingerprinting";
    
    290 291
     #endif  // defined(XP_WIN)
    
    291 292
     
    
    292 293
     #if defined(MOZ_WIDGET_GTK)
    
    ... ... @@ -2260,6 +2261,7 @@ static void ReflectSkeletonUIPrefToRegistry(const char* aPref, void* aData) {
    2260 2261
       bool shouldBeEnabled =
    
    2261 2262
           Preferences::GetBool(kPrefPreXulSkeletonUI, false) &&
    
    2262 2263
           Preferences::GetBool(kPrefBrowserStartupBlankWindow, false) &&
    
    2264
    +      !Preferences::GetBool(kPrefResistFingerprinting, false) &&
    
    2263 2265
           LookAndFeel::DrawInTitlebar();
    
    2264 2266
       if (shouldBeEnabled && Preferences::HasUserValue(kPrefThemeId)) {
    
    2265 2267
         nsCString themeId;