Commit e77167f7 authored by brizental's avatar brizental
Browse files

fixup! BB 42027: Base Browser migration procedures.

Clear LaterRun metadata preferences.
parent 91f5696f
Loading
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -913,7 +913,8 @@ export let ProfileDataUpgrader = {
    //            hid its neterror checkbox. tor-browser#42653.
    // Version 3: 14.0a7: Reset general.smoothScroll. tor-browser#42070.
    // Version 4: 15.0a2: Drop ML components. tor-browser#44045.
    const MIGRATION_VERSION = 4;
    // Version 5: 15.0a3: Disable LaterRun using prefs. tor-browser#42630.
    const MIGRATION_VERSION = 5;
    const MIGRATION_PREF = "basebrowser.migration.version";

    if (isNewProfile) {
@@ -972,6 +973,15 @@ export let ProfileDataUpgrader = {
        Services.prefs.clearUserPref(prefName);
      }
    }
    if (currentVersion < 5) {
      for (const prefName of [
        "browser.laterrun.bookkeeping.sessionCount",
        "browser.laterrun.bookkeeping.profileCreationTime",
        "browser.laterrun.bookkeeping.updateAppliedTime",
      ]) {
        Services.prefs.clearUserPref(prefName);
      }
    }
    Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
  },