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
This commit is contained in:
Tim Taubert 2013-12-07 09:50:19 +01:00
parent 796a579b34
commit 0fbb4496df

View File

@ -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