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
 
1 changed file:
Changes:
| ... | ... | @@ -4862,7 +4862,9 @@ BrowserGlue.prototype = { | 
| 4862 | 4862 |      //            (tor-browser#42283).
 | 
| 4863 | 4863 |      // Version 4: Tor Browser 14.0a4 (2024-09-02): Remove Twitter, Yahoo and
 | 
| 4864 | 4864 |      //            YouTube search engines (tor-browser#41835).
 | 
| 4865 | -    const TBB_MIGRATION_VERSION = 4;
 | 
|
| 4865 | +    // Version 5: Tor Browser 14.0a5: Clear user preference for CFR settings
 | 
|
| 4866 | +    //            since we hid the UI (tor-browser#43118).
 | 
|
| 4867 | +    const TBB_MIGRATION_VERSION = 5;
 | 
|
| 4866 | 4868 |      const MIGRATION_PREF = "torbrowser.migration.version";
 | 
| 4867 | 4869 | |
| 4868 | 4870 |      // If we decide to force updating users to pass through any version
 | 
| ... | ... | @@ -4935,6 +4937,14 @@ BrowserGlue.prototype = { | 
| 4935 | 4937 |          "youtube@xxxxxxxxxxxxxxxxxx",
 | 
| 4936 | 4938 |        ]);
 | 
| 4937 | 4939 |      }
 | 
| 4940 | +    if (currentVersion < 5) {
 | 
|
| 4941 | +      for (const pref of [
 | 
|
| 4942 | +        "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons",
 | 
|
| 4943 | +        "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features",
 | 
|
| 4944 | +      ]) {
 | 
|
| 4945 | +        Services.prefs.clearUserPref(pref);
 | 
|
| 4946 | +      }
 | 
|
| 4947 | +    }
 | 
|
| 4938 | 4948 | |
| 4939 | 4949 |      Services.prefs.setIntPref(MIGRATION_PREF, TBB_MIGRATION_VERSION);
 | 
| 4940 | 4950 |    },
 |