Bug 1335549 - Enable table updates when flashblock pref is flipped r=francois a=gchang
authorKirk Steuber <ksteuber@mozilla.com>
Tue, 07 Feb 2017 11:12:11 -0800
changeset 378363 47533612715f695d8c9699ca5383bc1c3e44d198
parent 378362 71d115ba551cc5ae7a7fe77a178e30a9f4606468
child 378364 18159c08997bf5d5f3cdd4b3521824f1701f3890
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrancois, gchang
bugs1335549
milestone53.0a2
Bug 1335549 - Enable table updates when flashblock pref is flipped r=francois a=gchang MozReview-Commit-ID: 4L5xP1lkL8d
toolkit/components/url-classifier/SafeBrowsing.jsm
--- a/toolkit/components/url-classifier/SafeBrowsing.jsm
+++ b/toolkit/components/url-classifier/SafeBrowsing.jsm
@@ -65,16 +65,17 @@ this.SafeBrowsing = {
     if (this.initialized) {
       log("Already initialized");
       return;
     }
 
     Services.prefs.addObserver("browser.safebrowsing", this, false);
     Services.prefs.addObserver("privacy.trackingprotection", this, false);
     Services.prefs.addObserver("urlclassifier", this, false);
+    Services.prefs.addObserver("plugins.flashBlock.enabled", this, false);
 
     this.readPrefs();
     this.addMozEntries();
 
     this.controlUpdateChecking();
     this.initialized = true;
 
     log("init() finished");