Commit 1b7b6e9c authored by morgan's avatar morgan 😸
Browse files

fixup! Bug 42027: Base Browser migration procedures.

Bug 42078: Hide Smoothscroll UX
parent ef0d9e9a
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -4650,7 +4650,8 @@ BrowserGlue.prototype = {
    //            the security level anymore (tor-browser#42149).
    //            the security level anymore (tor-browser#42149).
    //            Also, reset security.xfocsp.errorReporting.automatic since we
    //            Also, reset security.xfocsp.errorReporting.automatic since we
    //            hid its neterror checkbox. tor-browser#42653.
    //            hid its neterror checkbox. tor-browser#42653.
    const MIGRATION_VERSION = 2;
    // Version 3: 14.0a7: Reset general.smoothScroll. tor-browser#42070.
    const MIGRATION_VERSION = 3;
    const MIGRATION_PREF = "basebrowser.migration.version";
    const MIGRATION_PREF = "basebrowser.migration.version";
    // We do not care whether this is a new or old profile, since in version 1
    // We do not care whether this is a new or old profile, since in version 1
    // we just quickly clear a user preference, which should not do anything to
    // we just quickly clear a user preference, which should not do anything to
@@ -4678,6 +4679,11 @@ BrowserGlue.prototype = {
        Services.prefs.clearUserPref(prefName);
        Services.prefs.clearUserPref(prefName);
      }
      }
    }
    }
    if (currentVersion < 3) {
      Services.prefs.clearUserPref(
        "general.smoothScroll"
      );
    }
    Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
    Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
  },
  },