Make safebrowsing optional at build time - Part 3: toolkit/

This commit is contained in:
trav90 2018-05-12 08:19:07 -05:00 • committed by Roy Tam
commit 5c16f3d5ba
5 changed files with 33 additions and 3 deletions

View file

@ -473,6 +473,12 @@ this.DownloadIntegration = {
* }
*/
shouldBlockForReputationCheck(aDownload) {
#ifndef MOZ_URL_CLASSIFIER
return Promise.resolve({
shouldBlock: false,
verdict: "",
});
#else
let hash;
let sigInfo;
let channelRedirects;
@ -513,6 +519,7 @@ this.DownloadIntegration = {
});
});
return deferred.promise;
#endif
},
#ifdef XP_WIN