Bug 1160263: Don't allow add-ons to override the periodic XPI signature check. r=rstrong

This commit is contained in:
Dave Townsend 2015-04-30 13:17:32 -07:00
parent 76c354ce26
commit 37cac39a93

View File

@ -292,6 +292,10 @@ TimerManager.prototype = {
*/
registerTimer: function TM_registerTimer(id, callback, interval) {
LOG("TimerManager:registerTimer - id: " + id);
if (id in this._timers && callback != this._timers[id].callback) {
LOG("TimerManager:registerTimer - Ignoring second registration for " + id);
return;
}
let prefLastUpdate = PREF_APP_UPDATE_LASTUPDATETIME_FMT.replace(/%ID%/, id);
// Initialize the last update time to 0 when the preference isn't set so
// the timer will be notified soon after a new profile's first use.