summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/preferences/privacy.js
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-06-11 14:42:11 +0200
committerGitHub <noreply@github.com>2018-06-11 14:42:11 +0200
commitb1d82a62259c6888ea6f3f71f3e0973ea4b4e85e (patch)
treea68db88b7aa33f84961dac6fd7062f21b3e6429a /application/palemoon/components/preferences/privacy.js
parentbcb73db295d43574ded5376bae806fc18d50e21a (diff)
parenta250b46a0b6f7659bd14beef2b06f59c80e51e9c (diff)
downloadUXP-b1d82a62259c6888ea6f3f71f3e0973ea4b4e85e.tar
UXP-b1d82a62259c6888ea6f3f71f3e0973ea4b4e85e.tar.gz
UXP-b1d82a62259c6888ea6f3f71f3e0973ea4b4e85e.tar.lz
UXP-b1d82a62259c6888ea6f3f71f3e0973ea4b4e85e.tar.xz
UXP-b1d82a62259c6888ea6f3f71f3e0973ea4b4e85e.zip
Merge pull request #474 from JustOff/PR_dnt_two_state
[PALEMOON] Change the three-state DoNotTrack controls to a simple on/off switch
Diffstat (limited to 'application/palemoon/components/preferences/privacy.js')
-rw-r--r--application/palemoon/components/preferences/privacy.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/application/palemoon/components/preferences/privacy.js b/application/palemoon/components/preferences/privacy.js
index 18e38395d..05c2f9b8a 100644
--- a/application/palemoon/components/preferences/privacy.js
+++ b/application/palemoon/components/preferences/privacy.js
@@ -151,42 +151,6 @@ var gPrivacyPane = {
},
/**
- * Update the Tracking preferences based on controls.
- */
- setTrackingPrefs: function PPP_setTrackingPrefs()
- {
- let dntRadioGroup = document.getElementById("doNotTrackSelection"),
- dntValuePref = document.getElementById("privacy.donottrackheader.value"),
- dntEnabledPref = document.getElementById("privacy.donottrackheader.enabled");
-
- // if the selected radio button says "no preference", set on/off pref to
- // false and don't change the value pref.
- if (dntRadioGroup.selectedItem.value == -1) {
- dntEnabledPref.value = false;
- return dntValuePref.value;
- }
-
- dntEnabledPref.value = true;
- return dntRadioGroup.selectedItem.value;
- },
-
- /**
- * Obtain the tracking preference value and reflect it in the UI.
- */
- getTrackingPrefs: function PPP_getTrackingPrefs()
- {
- let dntValuePref = document.getElementById("privacy.donottrackheader.value"),
- dntEnabledPref = document.getElementById("privacy.donottrackheader.enabled");
-
- // if DNT is enbaled, select the value from the selected radio
- // button, otherwise choose the "no preference" radio button
- if (dntEnabledPref.value)
- return dntValuePref.value;
-
- return document.getElementById("dntnopref").value;
- },
-
- /**
* Update the private browsing auto-start pref and the history mode
* micro-management prefs based on the history mode menulist
*/