From 99b582a0b8ba3172b133dee8515593186311e5c3 Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Sat, 7 Dec 2013 09:50:19 +0100 Subject: [PATCH] Bug 947583 - Fix "this.updateProviderURLs is not a function" when toggling "Block reported attack sites" preference r=dolske From 8ba7cef13d00454ddcdec7e4f8eb32bcb6bee5ac Mon Sep 17 00:00:00 2001 --- toolkit/components/url-classifier/SafeBrowsing.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/components/url-classifier/SafeBrowsing.jsm b/toolkit/components/url-classifier/SafeBrowsing.jsm index f6ef132303f2..9f39b97cfa4b 100644 --- a/toolkit/components/url-classifier/SafeBrowsing.jsm +++ b/toolkit/components/url-classifier/SafeBrowsing.jsm @@ -35,7 +35,7 @@ this.SafeBrowsing = { return; } - Services.prefs.addObserver("browser.safebrowsing", this.readPrefs, false); + Services.prefs.addObserver("browser.safebrowsing", this.readPrefs.bind(this), false); this.readPrefs(); // Register our two types of tables, and add custom Mozilla entries