diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-06-11 13:46:22 +0300 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-06-11 13:46:22 +0300 |
commit | a250b46a0b6f7659bd14beef2b06f59c80e51e9c (patch) | |
tree | 5cf722e875d03f45631870652e3dd242345fc617 /application/palemoon/components/nsBrowserGlue.js | |
parent | 24f8b2fd5e2384a0e9f7a8f47005bd9c248f60be (diff) | |
download | UXP-a250b46a0b6f7659bd14beef2b06f59c80e51e9c.tar UXP-a250b46a0b6f7659bd14beef2b06f59c80e51e9c.tar.gz UXP-a250b46a0b6f7659bd14beef2b06f59c80e51e9c.tar.lz UXP-a250b46a0b6f7659bd14beef2b06f59c80e51e9c.tar.xz UXP-a250b46a0b6f7659bd14beef2b06f59c80e51e9c.zip |
[PALEMOON] Change the three-state DoNotTrack controls to a simple on/off switch
Diffstat (limited to 'application/palemoon/components/nsBrowserGlue.js')
-rw-r--r-- | application/palemoon/components/nsBrowserGlue.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/application/palemoon/components/nsBrowserGlue.js b/application/palemoon/components/nsBrowserGlue.js index aa24d88ef..5910ae9c0 100644 --- a/application/palemoon/components/nsBrowserGlue.js +++ b/application/palemoon/components/nsBrowserGlue.js @@ -1207,7 +1207,7 @@ BrowserGlue.prototype = { }, _migrateUI: function BG__migrateUI() { - const UI_VERSION = 17; + const UI_VERSION = 18; const BROWSER_DOCURL = "chrome://browser/content/browser.xul#"; let currentUIVersion = 0; try { @@ -1412,6 +1412,20 @@ BrowserGlue.prototype = { delete this._rdf; delete this._dataSource; + if (currentUIVersion < 18) { + // Make sure the doNotTrack value conforms to the conversion from + // three-state to two-state. (This reverts a setting of "please track me" + // to the default "don't say anything"). + try { + if (Services.prefs.getBoolPref("privacy.donottrackheader.enabled") && + Services.prefs.getIntPref("privacy.donottrackheader.value") != 1) { + Services.prefs.clearUserPref("privacy.donottrackheader.enabled"); + Services.prefs.clearUserPref("privacy.donottrackheader.value"); + } + } + catch (ex) {} + } + // Update the migration version. Services.prefs.setIntPref("browser.migration.version", UI_VERSION); }, |