Bug 1394053 - Disable download protection on non-official builds. r=gcp
authorFrancois Marier <francois@mozilla.com>
Tue, 05 Sep 2017 12:49:48 -0700
changeset 660361 eb99a243bb9d34d9bda0f7f5154c31907b6801a2
parent 660360 8d4b1890f7cf73a8ca194e2852cff9c5916b30b6
child 660362 29eee758ea72448451e5ade852097458d3f1e635
push id78390
push userbmo:emilio@crisal.io
push dateWed, 06 Sep 2017 23:04:15 +0000
reviewersgcp
bugs1394053
milestone57.0a1
Bug 1394053 - Disable download protection on non-official builds. r=gcp This is a follow up to revision 05907bcce126. MozReview-Commit-ID: L8jpGpIQa9K
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -5423,17 +5423,21 @@ pref("browser.safebrowsing.allowOverride
 // Normally the "client ID" sent in updates is appinfo.name, but for
 // official Firefox releases from Mozilla we use a special identifier.
 pref("browser.safebrowsing.id", "navclient-auto-ffox");
 #else
 pref("browser.safebrowsing.id", "Firefox");
 #endif
 
 // Download protection
+#ifdef MOZILLA_OFFICIAL
 pref("browser.safebrowsing.downloads.enabled", true);
+#else
+pref("browser.safebrowsing.downloads.enabled", false);
+#endif
 pref("browser.safebrowsing.downloads.remote.enabled", true);
 pref("browser.safebrowsing.downloads.remote.timeout_ms", 10000);
 pref("browser.safebrowsing.downloads.remote.url", "https://sb-ssl.google.com/safebrowsing/clientreport/download?key=%GOOGLE_API_KEY%");
 pref("browser.safebrowsing.downloads.remote.block_dangerous",            true);
 pref("browser.safebrowsing.downloads.remote.block_dangerous_host",       true);
 pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", true);
 pref("browser.safebrowsing.downloads.remote.block_uncommon",             true);