[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-128.2.0esr-14.0-1] 2 commits: fixup! Bug 42027: Base Browser migration procedures.

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Wed Sep 11 07:24:03 UTC 2024



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


Commits:
c0f033e8 by Henry Wilkes at 2024-09-11T09:02:54+02:00
fixup! Bug 42027: Base Browser migration procedures.

Bug 42777: Clear user preferences for GPC and DNT.

- - - - -
f67ca0ab by Henry Wilkes at 2024-09-11T09:02:55+02:00
Bug 42777: Hide Website Privacy Preferences.

We hide the Website Privacy Preferences section, which controls the
"global privacy control" (GPC) and "do not track" (DNT) settings.

- - - - -


2 changed files:

- browser/components/BrowserGlue.sys.mjs
- browser/components/preferences/privacy.inc.xhtml


Changes:

=====================================
browser/components/BrowserGlue.sys.mjs
=====================================
@@ -4812,7 +4812,9 @@ BrowserGlue.prototype = {
   _migrateUIBB() {
     // Version 1: 13.0a3. Reset layout.css.prefers-color-scheme.content-override
     //            for tor-browser#41739.
-    const MIGRATION_VERSION = 1;
+    // Version 2: Reset the privacy tracking headers preferences since the UI
+    //            is hidden. tor-browser#42777.
+    const MIGRATION_VERSION = 2;
     const MIGRATION_PREF = "basebrowser.migration.version";
     // We do not care whether this is a new or old profile, since in version 1
     // we just quickly clear a user preference, which should not do anything to
@@ -4825,6 +4827,20 @@ BrowserGlue.prototype = {
         "layout.css.prefers-color-scheme.content-override"
       );
     }
+    if (currentVersion < 2) {
+      for (const prefName of [
+        "privacy.globalprivacycontrol.enabled",
+        "privacy.donottrackheader.enabled",
+        // Telemetry preference for if the user changed the value.
+        "privacy.globalprivacycontrol.was_ever_enabled",
+        // The last two preferences have no corresponding UI, but are related.
+        "privacy.globalprivacycontrol.functionality.enabled",
+        "privacy.globalprivacycontrol.pbmode.enabled",
+      ]) {
+        Services.prefs.clearUserPref(prefName);
+      }
+    }
+
     Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
   },
 


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



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/6b115b944561ea95c2a4f34b3005aa4906c14fc9...f67ca0abf0757c8e3e9afeb3a093c0619b49a4fd

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/6b115b944561ea95c2a4f34b3005aa4906c14fc9...f67ca0abf0757c8e3e9afeb3a093c0619b49a4fd
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/20240911/196da62b/attachment-0001.htm>


More information about the tor-commits mailing list