diff options
author | trav90 <travawine@protonmail.ch> | 2018-05-12 08:17:44 -0500 |
---|---|---|
committer | trav90 <travawine@protonmail.ch> | 2018-05-12 08:17:44 -0500 |
commit | 5909cef47a4aaf458e41e0d2a46b88972b934dff (patch) | |
tree | bb29a2fa48196df4ba33af890be6535c46ef3b2e /browser/components | |
parent | 2f359ed80ccb2cab440c0cda886404ed42ad9fdf (diff) | |
download | UXP-5909cef47a4aaf458e41e0d2a46b88972b934dff.tar UXP-5909cef47a4aaf458e41e0d2a46b88972b934dff.tar.gz UXP-5909cef47a4aaf458e41e0d2a46b88972b934dff.tar.lz UXP-5909cef47a4aaf458e41e0d2a46b88972b934dff.tar.xz UXP-5909cef47a4aaf458e41e0d2a46b88972b934dff.zip |
Make safebrowsing optional at build time - Part 1: browser/
Diffstat (limited to 'browser/components')
-rw-r--r-- | browser/components/about/AboutRedirector.cpp | 2 | ||||
-rw-r--r-- | browser/components/build/nsModule.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/browser/components/about/AboutRedirector.cpp b/browser/components/about/AboutRedirector.cpp index 717ae9c48..8ddf19510 100644 --- a/browser/components/about/AboutRedirector.cpp +++ b/browser/components/about/AboutRedirector.cpp @@ -41,12 +41,14 @@ static RedirEntry kRedirMap[] = { nsIAboutModule::HIDE_FROM_ABOUTABOUT }, { +#ifdef MOZ_SAFE_BROWSING "blocked", "chrome://browser/content/blockedSite.xhtml", nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT | nsIAboutModule::URI_CAN_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT }, +#endif { "certerror", "chrome://browser/content/aboutNetError.xhtml", nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT | diff --git a/browser/components/build/nsModule.cpp b/browser/components/build/nsModule.cpp index 1fad0ce68..967da3ebc 100644 --- a/browser/components/build/nsModule.cpp +++ b/browser/components/build/nsModule.cpp @@ -86,7 +86,9 @@ static const mozilla::Module::ContractIDEntry kBrowserContracts[] = { #endif { NS_FEEDSNIFFER_CONTRACTID, &kNS_FEEDSNIFFER_CID }, { NS_ABOUT_MODULE_CONTRACTID_PREFIX "basilisk", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, +#ifdef MOZ_SAFE_BROWSING { NS_ABOUT_MODULE_CONTRACTID_PREFIX "blocked", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, +#endif { NS_ABOUT_MODULE_CONTRACTID_PREFIX "certerror", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, { NS_ABOUT_MODULE_CONTRACTID_PREFIX "socialerror", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, { NS_ABOUT_MODULE_CONTRACTID_PREFIX "providerdirectory", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, |