Pier Angelo Vendrame pushed to branch mullvad-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Mullvad Browser

Commits:

6 changed files:

Changes:

  • browser/app/profile/001-base-profile.js
    ... ... @@ -20,9 +20,6 @@ pref("browser.aboutwelcome.enabled", false);
    20 20
     // Disable the Firefox View tab (tor-browser#41876)
    
    21 21
     pref("browser.tabs.firefox-view", false, locked);
    
    22 22
     
    
    23
    -// Disable 'Switching to a new device" help menu item (tor-browser#41774)
    
    24
    -pref("browser.device-migration.help-menu.hidden", true);
    
    25
    -
    
    26 23
     #if MOZ_UPDATE_CHANNEL == release
    
    27 24
     // tor-browser#42640: Disable Firefox Flame buttond due to unknown interactions with New Identity
    
    28 25
     pref("browser.privatebrowsing.resetPBM.enabled", false, locked);
    

  • browser/base/content/browser-menubar.inc
    ... ... @@ -502,6 +502,7 @@
    502 502
                               hidden="true"/>
    
    503 503
                     <menuitem id="helpSwitchDevice"
    
    504 504
                               oncommand="openSwitchingDevicesPage();"
    
    505
    +                          hidden="true"
    
    505 506
                               data-l10n-id="menu-help-switch-device"
    
    506 507
                               appmenu-data-l10n-id="appmenu-help-switch-device"/>
    
    507 508
                     <menuseparator id="aboutSeparator"/>
    

  • browser/components/BrowserGlue.sys.mjs
    ... ... @@ -4683,7 +4683,12 @@ BrowserGlue.prototype = {
    4683 4683
       _migrateUIBB() {
    
    4684 4684
         // Version 1: 13.0a3. Reset layout.css.prefers-color-scheme.content-override
    
    4685 4685
         //            for tor-browser#41739.
    
    4686
    -    const MIGRATION_VERSION = 1;
    
    4686
    +    // Version 2: 14.0a5:Reset the privacy tracking headers preferences since
    
    4687
    +    //            the UI is hidden. tor-browser#42777.
    
    4688
    +    //            Also, do not set
    
    4689
    +    //            dom.security.https_only_mode_send_http_background_request in
    
    4690
    +    //            the security level anymore (tor-browser#42149).
    
    4691
    +    const MIGRATION_VERSION = 2;
    
    4687 4692
         const MIGRATION_PREF = "basebrowser.migration.version";
    
    4688 4693
         // We do not care whether this is a new or old profile, since in version 1
    
    4689 4694
         // we just quickly clear a user preference, which should not do anything to
    
    ... ... @@ -4696,6 +4701,20 @@ BrowserGlue.prototype = {
    4696 4701
             "layout.css.prefers-color-scheme.content-override"
    
    4697 4702
           );
    
    4698 4703
         }
    
    4704
    +    if (currentVersion < 2) {
    
    4705
    +      for (const prefName of [
    
    4706
    +        "privacy.globalprivacycontrol.enabled",
    
    4707
    +        "privacy.donottrackheader.enabled",
    
    4708
    +        // Telemetry preference for if the user changed the value.
    
    4709
    +        "privacy.globalprivacycontrol.was_ever_enabled",
    
    4710
    +        // The last two preferences have no corresponding UI, but are related.
    
    4711
    +        "privacy.globalprivacycontrol.functionality.enabled",
    
    4712
    +        "privacy.globalprivacycontrol.pbmode.enabled",
    
    4713
    +        "dom.security.https_only_mode_send_http_background_request",
    
    4714
    +      ]) {
    
    4715
    +        Services.prefs.clearUserPref(prefName);
    
    4716
    +      }
    
    4717
    +    }
    
    4699 4718
         Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
    
    4700 4719
       },
    
    4701 4720
     
    

  • browser/components/preferences/privacy.inc.xhtml
    ... ... @@ -358,7 +358,7 @@
    358 358
         </vbox>
    
    359 359
       </vbox>
    
    360 360
     </groupbox>
    
    361
    -<groupbox id="nonTechnicalPrivacyGroup" data-category="panePrivacy" data-subcategory="nontechnicalprivacy" hidden="true">
    
    361
    +<groupbox id="nonTechnicalPrivacyGroup" data-category="panePrivacy" data-subcategory="nontechnicalprivacy" data-hidden-from-search="true" hidden="true">
    
    362 362
       <label id="nonTechnicalPrivacyHeader"><html:h2 data-l10n-id="non-technical-privacy-header"/></label>
    
    363 363
       <vbox id="nonTechnicalPrivacyBox">
    
    364 364
         <hbox id="globalPrivacyControlBox" flex="1" align="center" hidden="true">
    

  • browser/components/preferences/privacy.js
    ... ... @@ -3041,8 +3041,12 @@ var gPrivacyPane = {
    3041 3041
       },
    
    3042 3042
     
    
    3043 3043
       _updateRelayIntegrationUI() {
    
    3044
    -    document.getElementById("relayIntegrationBox").hidden =
    
    3045
    -      !FirefoxRelay.isAvailable;
    
    3044
    +    // In Base Browser, we always hide the integration checkbox since
    
    3045
    +    // FirefoxRelay should remain disabled.
    
    3046
    +    // See tor-browser#43109 and tor-browser#42814.
    
    3047
    +    // NOTE: FirefoxRelay.isAvailable will be true whenever
    
    3048
    +    // FirefoxRelay.isDisabled is true.
    
    3049
    +    document.getElementById("relayIntegrationBox").hidden = true;
    
    3046 3050
         document.getElementById("relayIntegration").checked =
    
    3047 3051
           FirefoxRelay.isAvailable && !FirefoxRelay.isDisabled;
    
    3048 3052
       },
    

  • toolkit/components/securitylevel/SecurityLevel.sys.mjs
    ... ... @@ -268,17 +268,16 @@ var initializeNoScriptControl = () => {
    268 268
     /* eslint-disable */
    
    269 269
     // prettier-ignore
    
    270 270
     const kSecuritySettings = {
    
    271
    -  // Preference name :                                          [0, 1-high 2-m    3-m    4-low]
    
    272
    -  "javascript.options.ion" :                                    [,  false, false, false, true ],
    
    273
    -  "javascript.options.baselinejit" :                            [,  false, false, false, true ],
    
    274
    -  "javascript.options.native_regexp" :                          [,  false, false, false, true ],
    
    275
    -  "mathml.disabled" :                                           [,  true,  true,  true,  false],
    
    276
    -  "gfx.font_rendering.graphite.enabled" :                       [,  false, false, false, true ],
    
    277
    -  "gfx.font_rendering.opentype_svg.enabled" :                   [,  false, false, false, true ],
    
    278
    -  "svg.disabled" :                                              [,  true,  false, false, false],
    
    279
    -  "javascript.options.asmjs" :                                  [,  false, false, false, true ],
    
    280
    -  "javascript.options.wasm" :                                   [,  false, false, false, true ],
    
    281
    -  "dom.security.https_only_mode_send_http_background_request" : [,  false, false, false, true ],
    
    271
    +  // Preference name:                        [0, 1-high 2-m    3-m    4-low]
    
    272
    +  "javascript.options.ion":                  [,  false, false, false, true ],
    
    273
    +  "javascript.options.baselinejit":          [,  false, false, false, true ],
    
    274
    +  "javascript.options.native_regexp":        [,  false, false, false, true ],
    
    275
    +  "mathml.disabled":                         [,  true,  true,  true,  false],
    
    276
    +  "gfx.font_rendering.graphite.enabled":     [,  false, false, false, true ],
    
    277
    +  "gfx.font_rendering.opentype_svg.enabled": [,  false, false, false, true ],
    
    278
    +  "svg.disabled":                            [,  true,  false, false, false],
    
    279
    +  "javascript.options.asmjs":                [,  false, false, false, true ],
    
    280
    +  "javascript.options.wasm":                 [,  false, false, false, true ],
    
    282 281
     };
    
    283 282
     /* eslint-enable */
    
    284 283