Bug 895476: Enable updating local lists for application reputation (r=gcp)

This commit is contained in:
Monica Chew 2013-10-31 14:15:14 -07:00
parent 3b966ef396
commit 7c72bdd32b
3 changed files with 13 additions and 5 deletions

View File

@ -818,6 +818,9 @@ pref("urlclassifier.gethashnoise", 4);
// a gethash request will be forced to check that the result is still in
// the database.
pref("urlclassifier.max-complete-age", 2700);
// Tables for application reputation.
pref("urlclassifier.download_block_table", "goog-badbinurl-shavar");
pref("urlclassifier.download_allow_table", "goog-downloadwhite-digest256");
#endif
pref("browser.geolocation.warning.infoURL", "https://www.mozilla.org/%LOCALE%/firefox/geolocation/");

View File

@ -4563,8 +4563,8 @@ pref("dom.inter-app-communication-api.enabled", false);
// The tables used for Safebrowsing phishing and malware checks.
pref("urlclassifier.malware_table", "goog-malware-shavar");
pref("urlclassifier.phish_table", "goog-phish-shavar");
pref("urlclassifier.download_block_table", "goog-badbinurl-shavar");
pref("urlclassifier.download_allow_table", "goog-downloadwhite-digest256");
pref("urlclassifier.download_block_table", "");
pref("urlclassifier.download_allow_table", "");
// Turn off Spatial navigation by default.
pref("snav.enabled", false);

View File

@ -98,7 +98,7 @@ this.SafeBrowsing = {
var clientID = Services.appinfo.name;
}
log("initializing safe browsing URLs");
log("initializing safe browsing URLs, client id ", clientID);
let basePref = "browser.safebrowsing.";
// Urls to HTML report pages
@ -141,10 +141,15 @@ this.SafeBrowsing = {
else
listManager.disableUpdate(phishingList);
if (this.malwareEnabled)
if (this.malwareEnabled) {
listManager.enableUpdate(malwareList);
else
listManager.enableUpdate(downloadBlockList);
listManager.enableUpdate(downloadAllowList);
} else {
listManager.disableUpdate(malwareList);
listManager.disableUpdate(downloadBlockList);
listManager.disableUpdate(downloadAllowList);
}
},