Bug 1376533 - Use low priority timer for places expiration draft
authorAdam Gashlin <agashlin@mozilla.com>
Thu, 10 Aug 2017 13:57:13 -0700
changeset 644350 0f36e8f812836d20b85da86969f1047797763a70
parent 644169 5322c03f4c8587fe526172d3f87160031faa6d75
child 725584 beb8bc90f718b52b31c57bf5a1194249665f5bb8
push id73411
push useragashlin@mozilla.com
push dateThu, 10 Aug 2017 21:09:50 +0000
bugs1376533
milestone57.0a1
Bug 1376533 - Use low priority timer for places expiration MozReview-Commit-ID: 2FVldA507J3
toolkit/components/places/nsPlacesExpiration.js
--- a/toolkit/components/places/nsPlacesExpiration.js
+++ b/toolkit/components/places/nsPlacesExpiration.js
@@ -973,17 +973,17 @@ nsPlacesExpiration.prototype = {
       this._timer.cancel();
     if (this._shuttingDown)
       return undefined;
     let interval = this.status != STATUS.DIRTY ?
       this._interval * EXPIRE_AGGRESSIVITY_MULTIPLIER : this._interval;
 
     let timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
     timer.initWithCallback(this, interval * 1000,
-                           Ci.nsITimer.TYPE_REPEATING_SLACK);
+                           Ci.nsITimer.TYPE_REPEATING_SLACK_LOW_PRIORITY);
     if (this._testingMode) {
       Services.obs.notifyObservers(null, TOPIC_TEST_INTERVAL_CHANGED,
                                    interval);
     }
     return this._timer = timer;
   },
 
   // nsISupports