summaryrefslogtreecommitdiffstats
path: root/application/basilisk/components/preferences/in-content/privacy.xul
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-06-10 15:56:51 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-06-10 15:56:51 +0300
commit6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1 (patch)
tree0a7644fbd4b42654cf46cea65a7d69125872fadc /application/basilisk/components/preferences/in-content/privacy.xul
parenta0cca670db37a84674512948c54acd2673ddd704 (diff)
downloadUXP-6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1.tar
UXP-6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1.tar.gz
UXP-6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1.tar.lz
UXP-6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1.tar.xz
UXP-6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1.zip
[BASILISK] Remove tracking protection controls from the UI if safebrowsing isn't built
Diffstat (limited to 'application/basilisk/components/preferences/in-content/privacy.xul')
-rw-r--r--application/basilisk/components/preferences/in-content/privacy.xul21
1 files changed, 21 insertions, 0 deletions
diff --git a/application/basilisk/components/preferences/in-content/privacy.xul b/application/basilisk/components/preferences/in-content/privacy.xul
index 6ac6c88a4..8881a84fe 100644
--- a/application/basilisk/components/preferences/in-content/privacy.xul
+++ b/application/basilisk/components/preferences/in-content/privacy.xul
@@ -10,12 +10,18 @@
<preferences id="privacyPreferences" hidden="true" data-category="panePrivacy">
<!-- Tracking -->
+#ifdef MOZ_SAFEBROWSING
<preference id="privacy.trackingprotection.enabled"
name="privacy.trackingprotection.enabled"
type="bool"/>
<preference id="privacy.trackingprotection.pbmode.enabled"
name="privacy.trackingprotection.pbmode.enabled"
type="bool"/>
+#else
+ <preference id="privacy.donottrackheader.enabled"
+ name="privacy.donottrackheader.enabled"
+ type="bool"/>
+#endif
<!-- XXX button prefs -->
<preference id="pref.privacy.disable_button.cookie_exceptions"
@@ -85,6 +91,7 @@
<!-- Tracking -->
<groupbox id="trackingGroup" data-category="panePrivacy" hidden="true">
+#ifdef MOZ_SAFEBROWSING
<vbox id="trackingprotectionbox" hidden="true">
<hbox align="start">
<vbox>
@@ -138,6 +145,20 @@
class="text-link" id="doNotTrackSettings"
>&doNotTrack.settings.label;</label>&doNotTrack.post.label;</description>
</vbox>
+#else
+ <vbox id="donottrackbox">
+ <caption><label>&tracking.label;</label></caption>
+ <hbox align="center">
+ <checkbox id="DoNotTrack"
+ preference="privacy.donottrackheader.enabled"
+ accesskey="&doNotTrack.accesskey;"
+ label="&doNotTrack.label;" />
+ <label class="text-link"
+ value="&doNotTrackLearnMore.label;"
+ href="https://www.mozilla.org/dnt"/>
+ </hbox>
+ </vbox>
+#endif
</groupbox>
<!-- History -->