... |
... |
@@ -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
|
|