зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1296751 - Skip observe browser.safebrowsing.provider.*.(nextupdatetime|lastupdatetime). r=francois
MozReview-Commit-ID: 6yNWVJ3LYBE --HG-- extra : rebase_source : cb60de6f916fdacc9bbb627b1724a68fad708ff1
This commit is contained in:
Родитель
76bc75d243
Коммит
bfa85d562c
|
@ -61,9 +61,9 @@ this.SafeBrowsing = {
|
|||
return;
|
||||
}
|
||||
|
||||
Services.prefs.addObserver("browser.safebrowsing", this.readPrefs.bind(this), false);
|
||||
Services.prefs.addObserver("privacy.trackingprotection", this.readPrefs.bind(this), false);
|
||||
Services.prefs.addObserver("urlclassifier", this.readPrefs.bind(this), false);
|
||||
Services.prefs.addObserver("browser.safebrowsing", this, false);
|
||||
Services.prefs.addObserver("privacy.trackingprotection", this, false);
|
||||
Services.prefs.addObserver("urlclassifier", this, false);
|
||||
|
||||
this.readPrefs();
|
||||
this.addMozEntries();
|
||||
|
@ -165,6 +165,13 @@ this.SafeBrowsing = {
|
|||
return reportUrl;
|
||||
},
|
||||
|
||||
observe: function(aSubject, aTopic, aData) {
|
||||
// skip nextupdatetime and lastupdatetime
|
||||
if (aData.indexOf("lastupdatetime") >= 0 || aData.indexOf("nextupdatetime") >= 0) {
|
||||
return;
|
||||
}
|
||||
this.readPrefs();
|
||||
},
|
||||
|
||||
readPrefs: function() {
|
||||
log("reading prefs");
|
||||
|
|
Загрузка…
Ссылка в новой задаче