diff options
author | trav90 <travawine@protonmail.ch> | 2018-05-12 08:32:13 -0500 |
---|---|---|
committer | trav90 <travawine@protonmail.ch> | 2018-05-12 13:07:29 -0500 |
commit | 41d68e3f70b0aabc01cf9a49c43cf1aab0f4bdce (patch) | |
tree | ab1812ebad2c2f5eb46010b8af880ad022e054db /browser/components/preferences/in-content/security.xul | |
parent | e07abdd2822f11b1cc10705ee47734b848acb0ce (diff) | |
download | UXP-41d68e3f70b0aabc01cf9a49c43cf1aab0f4bdce.tar UXP-41d68e3f70b0aabc01cf9a49c43cf1aab0f4bdce.tar.gz UXP-41d68e3f70b0aabc01cf9a49c43cf1aab0f4bdce.tar.lz UXP-41d68e3f70b0aabc01cf9a49c43cf1aab0f4bdce.tar.xz UXP-41d68e3f70b0aabc01cf9a49c43cf1aab0f4bdce.zip |
Make safebrowsing optional at build time - Part 5: preferences
Diffstat (limited to 'browser/components/preferences/in-content/security.xul')
-rw-r--r-- | browser/components/preferences/in-content/security.xul | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/browser/components/preferences/in-content/security.xul b/browser/components/preferences/in-content/security.xul index 5dc8ad5e9..33e1471bd 100644 --- a/browser/components/preferences/in-content/security.xul +++ b/browser/components/preferences/in-content/security.xul @@ -16,11 +16,13 @@ name="pref.privacy.disable_button.view_passwords_exceptions" type="bool"/> - <!-- Add-ons, malware, phishing --> + <!-- Add-ons --> <preference id="xpinstall.whitelist.required" name="xpinstall.whitelist.required" type="bool"/> +#ifdef MOZ_SAFE_BROWSING + <!-- Malware, phishing --> <preference id="browser.safebrowsing.malware.enabled" name="browser.safebrowsing.malware.enabled" type="bool"/> @@ -28,10 +30,6 @@ name="browser.safebrowsing.phishing.enabled" type="bool"/> - <preference id="browser.safebrowsing.UI.enabled" - name="browser.safebrowsing.UI.enabled" - type="bool"/> - <preference id="browser.safebrowsing.downloads.enabled" name="browser.safebrowsing.downloads.enabled" type="bool"/> @@ -46,6 +44,7 @@ <preference id="browser.safebrowsing.downloads.remote.block_uncommon" name="browser.safebrowsing.downloads.remote.block_uncommon" type="bool"/> +#endif <!-- Passwords --> <preference id="signon.rememberSignons" name="signon.rememberSignons" type="bool"/> @@ -61,7 +60,7 @@ <html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a> </hbox> -<!-- addons, forgery (phishing) UI --> +<!-- addons --> <groupbox id="addonsPhishingGroup" data-category="paneSecurity" hidden="true"> <caption><label>&general.label;</label></caption> @@ -77,8 +76,10 @@ accesskey="&addonExceptions.accesskey;"/> </hbox> - <separator id="safeBrowsingUISep" class="thin"/> - <vbox id="safeBrowsingUIGroup" align="start"> +#ifdef MOZ_SAFE_BROWSING +<!-- Safebrowsing (phishing) UI --> + <separator class="thin"/> + <vbox align="start"> <checkbox id="enableSafeBrowsing" label="&enableSafeBrowsing.label;" accesskey="&enableSafeBrowsing.accesskey;" /> @@ -91,6 +92,7 @@ accesskey="&blockUncommonUnwanted.accesskey;" /> </vbox> </vbox> +#endif </groupbox> <!-- Passwords --> |