Commit 14f24ee0 authored by henry's avatar henry Committed by morgan
Browse files

fixup! BB 42027: Base Browser migration procedures.

BB 45187: Clear the private downloads preferences in case we re-enable
this again in the future.
parent 75a95c6d
Loading
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -1041,6 +1041,8 @@ export let ProfileDataUpgrader = {
    // Version 5: 15.0a3: Disable LaterRun using prefs. tor-browser#42630.
    // Version 6: 15.0a4: Reset browser colors. tor-browser#43850.
    // Version 7: 16.0a10: Reset safe browsing preferences. tor-browser#44802.
    //                     Also reset delete downloads preferences.
    //                     tor-browser#45187.
    const MIGRATION_VERSION = 7;
    const MIGRATION_PREF = "basebrowser.migration.version";

@@ -1140,16 +1142,20 @@ export let ProfileDataUpgrader = {
      }
    }
    if (currentVersion < 7) {
      for (const prefName of [
        // Clear these preferences since:
        // + They aren't expected to work.
        // + We are hiding the UI to change these. tor-browser#44802.
      for (const prefName of [
        "browser.safebrowsing.phishing.enabled",
        "browser.safebrowsing.malware.enabled",
        "browser.safebrowsing.downloads.enabled",
        "browser.safebrowsing.downloads.remote.block_uncommon",
        "browser.safebrowsing.downloads.remote.block_potentially_unwanted",
        "urlclassifier.malwareTable",
        // Clear the downloads preferences for alpha profiles in case we want to
        // re-offer this feature again in the future. tor-browser#45187.
        "browser.download.deletePrivate",
        "browser.download.deletePrivate.chosen",
      ]) {
        Services.prefs.clearUserPref(prefName);
      }