summaryrefslogtreecommitdiffstats
path: root/application/basilisk/components/preferences/in-content/privacy.xul
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-06-10 20:46:30 +0200
committerGitHub <noreply@github.com>2018-06-10 20:46:30 +0200
commit27783db85a4d3c38b041e51b088ed2dbd35e96c1 (patch)
treebdecff2c72ae61e598585a2821a53c523fc89a4a /application/basilisk/components/preferences/in-content/privacy.xul
parent25f9c54aded0f514e6be7eb3105fcdb214431a59 (diff)
parent7128f0d21de4d03be75133fbbd698f996fcd2a50 (diff)
downloadUXP-27783db85a4d3c38b041e51b088ed2dbd35e96c1.tar
UXP-27783db85a4d3c38b041e51b088ed2dbd35e96c1.tar.gz
UXP-27783db85a4d3c38b041e51b088ed2dbd35e96c1.tar.lz
UXP-27783db85a4d3c38b041e51b088ed2dbd35e96c1.tar.xz
UXP-27783db85a4d3c38b041e51b088ed2dbd35e96c1.zip
Merge pull request #469 from JustOff/PR_SB_DoNotTrack
[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 -->