mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 00:37:32 +09:00
Make safebrowsing optional at build time - Part 3: toolkit/
This commit is contained in:
parent
62afe1838f
commit
5c16f3d5ba
5 changed files with 33 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue