Bug 1335549 - Enable table updates when flashblock pref is flipped draft
authorKirk Steuber <ksteuber@mozilla.com>
Tue, 07 Feb 2017 11:12:11 -0800
changeset 480048 762b9c1a7083d0f774e96594855bda8a00de474a
parent 479986 3c52cd0e47cd59a1db554e899d9747c484c94b6d
child 544858 e5cbfe1c3570adbb7a883109305313760d0f7db7
push id44439
push userksteuber@mozilla.com
push dateTue, 07 Feb 2017 19:13:37 +0000
bugs1335549
milestone54.0a1
Bug 1335549 - Enable table updates when flashblock pref is flipped 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");