mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1160263: Don't allow add-ons to override the periodic XPI signature check. r=rstrong
This commit is contained in:
parent
76c354ce26
commit
37cac39a93
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user