Pier Angelo Vendrame pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor
Project / Applications / Tor Browser
Commits:
ed873553 by Henry Wilkes at 2024-09-12T13:56:21+00:00
fixup! Bug 41435: Add a Tor Browser migration function
Bug 43118: Clear user preference for CFR since we have hidden the
settings.
- - - - -
1 changed file:
- browser/components/BrowserGlue.sys.mjs
Changes:
=====================================
browser/components/BrowserGlue.sys.mjs
=====================================
@@ -4862,7 +4862,9 @@ BrowserGlue.prototype = {
// (tor-browser#42283).
// Version 4: Tor Browser 14.0a4 (2024-09-02): Remove Twitter, Yahoo and
// YouTube search engines (tor-browser#41835).
- const TBB_MIGRATION_VERSION = 4;
+ // Version 5: Tor Browser 14.0a5: Clear user preference for CFR settings
+ // since we hid the UI (tor-browser#43118).
+ const TBB_MIGRATION_VERSION = 5;
const MIGRATION_PREF = "torbrowser.migration.version";
// If we decide to force updating users to pass through any version
@@ -4935,6 +4937,14 @@ BrowserGlue.prototype = {
"[email protected]",
]);
}
+ if (currentVersion < 5) {
+ for (const pref of [
+ "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons",
+ "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features",
+ ]) {
+ Services.prefs.clearUserPref(pref);
+ }
+ }
Services.prefs.setIntPref(MIGRATION_PREF, TBB_MIGRATION_VERSION);
},
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/ed8735537f26296f0c2c6e63abdeebcc0a42d53c
--
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/ed8735537f26296f0c2c6e63abdeebcc0a42d53c
You're receiving this email because of your account on gitlab.torproject.org.
_______________________________________________
tbb-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-commits