diff options
author | trav90 <travawine@protonmail.ch> | 2018-05-12 08:19:07 -0500 |
---|---|---|
committer | trav90 <travawine@protonmail.ch> | 2018-05-12 08:19:07 -0500 |
commit | 536562284f1ffe459f432f5810d59dcb6eadb8cc (patch) | |
tree | ab4e66954e9584598238883c884892a2e043ac2c /toolkit/components/jsdownloads/src | |
parent | 8e08b8cef22be82dfc6f62bf8531ba3da097ef9b (diff) | |
download | UXP-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/src')
-rw-r--r-- | toolkit/components/jsdownloads/src/DownloadIntegration.jsm | 7 |
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 |