Pier Angelo Vendrame pushed to branch base-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor 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
    ... ... @@ -503,6 +503,7 @@
    503 503
                               hidden="true"/>
    
    504 504
                     <menuitem id="helpSwitchDevice"
    
    505 505
                               oncommand="openSwitchingDevicesPage();"
    
    506
    +                          hidden="true"
    
    506 507
                               data-l10n-id="menu-help-switch-device"
    
    507 508
                               appmenu-data-l10n-id="appmenu-help-switch-device"/>
    
    508 509
                     <menuseparator id="aboutSeparator"/>
    

  • browser/components/BrowserGlue.sys.mjs
    ... ... @@ -4701,7 +4701,12 @@ BrowserGlue.prototype = {
    4701 4701
       _migrateUIBB() {
    
    4702 4702
         // Version 1: 13.0a3. Reset layout.css.prefers-color-scheme.content-override
    
    4703 4703
         //            for tor-browser#41739.
    
    4704
    -    const MIGRATION_VERSION = 1;
    
    4704
    +    // Version 2: 14.0a5:Reset the privacy tracking headers preferences since
    
    4705
    +    //            the UI is hidden. tor-browser#42777.
    
    4706
    +    //            Also, do not set
    
    4707
    +    //            dom.security.https_only_mode_send_http_background_request in
    
    4708
    +    //            the security level anymore (tor-browser#42149).
    
    4709
    +    const MIGRATION_VERSION = 2;
    
    4705 4710
         const MIGRATION_PREF = "basebrowser.migration.version";
    
    4706 4711
         // We do not care whether this is a new or old profile, since in version 1
    
    4707 4712
         // we just quickly clear a user preference, which should not do anything to
    
    ... ... @@ -4714,6 +4719,20 @@ BrowserGlue.prototype = {
    4714 4719
             "layout.css.prefers-color-scheme.content-override"
    
    4715 4720
           );
    
    4716 4721
         }
    
    4722
    +    if (currentVersion < 2) {
    
    4723
    +      for (const prefName of [
    
    4724
    +        "privacy.globalprivacycontrol.enabled",
    
    4725
    +        "privacy.donottrackheader.enabled",
    
    4726
    +        // Telemetry preference for if the user changed the value.
    
    4727
    +        "privacy.globalprivacycontrol.was_ever_enabled",
    
    4728
    +        // The last two preferences have no corresponding UI, but are related.
    
    4729
    +        "privacy.globalprivacycontrol.functionality.enabled",
    
    4730
    +        "privacy.globalprivacycontrol.pbmode.enabled",
    
    4731
    +        "dom.security.https_only_mode_send_http_background_request",
    
    4732
    +      ]) {
    
    4733
    +        Services.prefs.clearUserPref(prefName);
    
    4734
    +      }
    
    4735
    +    }
    
    4717 4736
         Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
    
    4718 4737
       },
    
    4719 4738
     
    

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

  • toolkit/components/securitylevel/SecurityLevel.sys.mjs
    ... ... @@ -256,17 +256,16 @@ var initializeNoScriptControl = () => {
    256 256
     /* eslint-disable */
    
    257 257
     // prettier-ignore
    
    258 258
     const kSecuritySettings = {
    
    259
    -  // Preference name :                                          [0, 1-high 2-m    3-m    4-low]
    
    260
    -  "javascript.options.ion" :                                    [,  false, false, false, true ],
    
    261
    -  "javascript.options.baselinejit" :                            [,  false, false, false, true ],
    
    262
    -  "javascript.options.native_regexp" :                          [,  false, false, false, true ],
    
    263
    -  "mathml.disabled" :                                           [,  true,  true,  true,  false],
    
    264
    -  "gfx.font_rendering.graphite.enabled" :                       [,  false, false, false, true ],
    
    265
    -  "gfx.font_rendering.opentype_svg.enabled" :                   [,  false, false, false, true ],
    
    266
    -  "svg.disabled" :                                              [,  true,  false, false, false],
    
    267
    -  "javascript.options.asmjs" :                                  [,  false, false, false, true ],
    
    268
    -  "javascript.options.wasm" :                                   [,  false, false, false, true ],
    
    269
    -  "dom.security.https_only_mode_send_http_background_request" : [,  false, false, false, true ],
    
    259
    +  // Preference name:                        [0, 1-high 2-m    3-m    4-low]
    
    260
    +  "javascript.options.ion":                  [,  false, false, false, true ],
    
    261
    +  "javascript.options.baselinejit":          [,  false, false, false, true ],
    
    262
    +  "javascript.options.native_regexp":        [,  false, false, false, true ],
    
    263
    +  "mathml.disabled":                         [,  true,  true,  true,  false],
    
    264
    +  "gfx.font_rendering.graphite.enabled":     [,  false, false, false, true ],
    
    265
    +  "gfx.font_rendering.opentype_svg.enabled": [,  false, false, false, true ],
    
    266
    +  "svg.disabled":                            [,  true,  false, false, false],
    
    267
    +  "javascript.options.asmjs":                [,  false, false, false, true ],
    
    268
    +  "javascript.options.wasm":                 [,  false, false, false, true ],
    
    270 269
     };
    
    271 270
     /* eslint-enable */
    
    272 271