summaryrefslogtreecommitdiffstats
path: root/toolkit/components/jsdownloads
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-05-12 08:19:07 -0500
committertrav90 <travawine@protonmail.ch>2018-05-12 08:19:07 -0500
commit536562284f1ffe459f432f5810d59dcb6eadb8cc (patch)
treeab4e66954e9584598238883c884892a2e043ac2c /toolkit/components/jsdownloads
parent8e08b8cef22be82dfc6f62bf8531ba3da097ef9b (diff)
downloadUXP-536562284f1ffe459f432f5810d59dcb6eadb8cc.tar
UXP-536562284f1ffe459f432f5810d59dcb6eadb8cc.tar.gz
UXP-536562284f1ffe459f432f5810d59dcb6eadb8cc.tar.lz
UXP-536562284f1ffe459f432f5810d59dcb6eadb8cc.tar.xz
UXP-536562284f1ffe459f432f5810d59dcb6eadb8cc.zip
Make safebrowsing optional at build time - Part 3: toolkit/
Diffstat (limited to 'toolkit/components/jsdownloads')
-rw-r--r--toolkit/components/jsdownloads/src/DownloadIntegration.jsm7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolkit/components/jsdownloads/src/DownloadIntegration.jsm b/toolkit/components/jsdownloads/src/DownloadIntegration.jsm
index 4069bca74..c24c5d631 100644
--- a/toolkit/components/jsdownloads/src/DownloadIntegration.jsm
+++ b/toolkit/components/jsdownloads/src/DownloadIntegration.jsm
@@ -475,6 +475,12 @@ this.DownloadIntegration = {
* }
*/
shouldBlockForReputationCheck(aDownload) {
+#ifndef MOZ_URL_CLASSIFIER
+ return Promise.resolve({
+ shouldBlock: false,
+ verdict: "",
+ });
+#else
let hash;
let sigInfo;
let channelRedirects;
@@ -515,6 +521,7 @@ this.DownloadIntegration = {
});
});
return deferred.promise;
+#endif
},
#ifdef XP_WIN