Commit ed50b5fb authored by brizental's avatar brizental Committed by brizental
Browse files

fixup! BB 42630: Disable LaterRun module.

This reverts commit 39ef92aa.
parent d37094a0
Loading
Loading
Loading
Loading
+5 −16
Original line number Diff line number Diff line
@@ -61,20 +61,6 @@ export let LaterRun = {
  },

  init(reason) {
    // Keep disabled in Base Browser. See tor-browser#41568.
    // NOTE: This means that users cannot benefit from feature prompts gated
    // behind LaterRun.
    // In mozilla ESR 128 it is only used in one place, and is gated behind a
    // feature recommendation preference that we switch off in Base Browser
    // anyway. See tor-browser#42630.
    // But this decision should be reviewed. See tor-browser#43093.
    Services.prefs.setBoolPref(kEnabledPref, false);
    // Clear any preferences that may have been set before LaterRun was
    // disabled.
    Services.prefs.clearUserPref(kSessionCountPref);
    Services.prefs.clearUserPref(kProfileCreationTime);
    Services.prefs.clearUserPref(kUpdateAppliedTime);

    if (!this.enabled) {
      return;
    }
@@ -113,8 +99,11 @@ export let LaterRun = {
    return Services.prefs.getBoolPref(kEnabledPref, false);
  },

  enable(_reason) {
    // Keep disabled in Base Browser. See tor-browser#41568.
  enable(reason) {
    if (!this.enabled) {
      Services.prefs.setBoolPref(kEnabledPref, true);
      this.init(reason);
    }
  },

  get hoursSinceInstall() {