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

Commits:

2 changed files:

Changes:

  • browser/components/BrowserGlue.sys.mjs
    ... ... @@ -4812,7 +4812,9 @@ BrowserGlue.prototype = {
    4812 4812
       _migrateUIBB() {
    
    4813 4813
         // Version 1: 13.0a3. Reset layout.css.prefers-color-scheme.content-override
    
    4814 4814
         //            for tor-browser#41739.
    
    4815
    -    const MIGRATION_VERSION = 1;
    
    4815
    +    // Version 2: Reset the privacy tracking headers preferences since the UI
    
    4816
    +    //            is hidden. tor-browser#42777.
    
    4817
    +    const MIGRATION_VERSION = 2;
    
    4816 4818
         const MIGRATION_PREF = "basebrowser.migration.version";
    
    4817 4819
         // We do not care whether this is a new or old profile, since in version 1
    
    4818 4820
         // we just quickly clear a user preference, which should not do anything to
    
    ... ... @@ -4825,6 +4827,20 @@ BrowserGlue.prototype = {
    4825 4827
             "layout.css.prefers-color-scheme.content-override"
    
    4826 4828
           );
    
    4827 4829
         }
    
    4830
    +    if (currentVersion < 2) {
    
    4831
    +      for (const prefName of [
    
    4832
    +        "privacy.globalprivacycontrol.enabled",
    
    4833
    +        "privacy.donottrackheader.enabled",
    
    4834
    +        // Telemetry preference for if the user changed the value.
    
    4835
    +        "privacy.globalprivacycontrol.was_ever_enabled",
    
    4836
    +        // The last two preferences have no corresponding UI, but are related.
    
    4837
    +        "privacy.globalprivacycontrol.functionality.enabled",
    
    4838
    +        "privacy.globalprivacycontrol.pbmode.enabled",
    
    4839
    +      ]) {
    
    4840
    +        Services.prefs.clearUserPref(prefName);
    
    4841
    +      }
    
    4842
    +    }
    
    4843
    +
    
    4828 4844
         Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
    
    4829 4845
       },
    
    4830 4846
     
    

  • 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">