mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
[Pale-Moon] Issue MoonchildProductions/UXP#1721 - Implement GlobalPrivacyControl
Front-end and locale changes for GPC in preferences as well as migration. Also bumps the back-end pointer to pick up the platform changes necessary.
This commit is contained in:
parent
50ad087351
commit
591a887bf3
3 changed files with 26 additions and 18 deletions
|
|
@ -1284,7 +1284,7 @@ BrowserGlue.prototype = {
|
|||
},
|
||||
|
||||
_migrateUI: function() {
|
||||
const UI_VERSION = 24;
|
||||
const UI_VERSION = 26;
|
||||
const BROWSER_DOCURL = "chrome://browser/content/browser.xul#";
|
||||
let currentUIVersion = 0;
|
||||
try {
|
||||
|
|
@ -1558,6 +1558,14 @@ BrowserGlue.prototype = {
|
|||
Services.prefs.clearUserPref("dom.abortController.enabled");
|
||||
}
|
||||
|
||||
if (currentUIVersion < 26) {
|
||||
// DoNotTrack is now GPC. Carry across user preference.
|
||||
if (Services.prefs.prefHasUserValue("privacy.donottrackheader.enabled")) {
|
||||
let DNTEnabled = Services.prefs.getBoolPref("privacy.donottrackheader.enabled");
|
||||
Services.prefs.setBoolPref("privacy.GPCheader.enabled", DNTEnabled);
|
||||
Services.prefs.clearUserPref("privacy.donottrackheader.enabled");
|
||||
}
|
||||
}
|
||||
|
||||
// Clear out dirty storage
|
||||
if (this._dirty) {
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@
|
|||
|
||||
<preferences id="privacyPreferences">
|
||||
|
||||
<!-- Tracking -->
|
||||
<preference id="privacy.donottrackheader.enabled"
|
||||
name="privacy.donottrackheader.enabled"
|
||||
<!-- Global Privacy Control -->
|
||||
<preference id="privacy.GPCheader.enabled"
|
||||
name="privacy.GPCheader.enabled"
|
||||
type="bool"/>
|
||||
|
||||
<!-- XXX button prefs -->
|
||||
|
|
@ -216,18 +216,18 @@
|
|||
|
||||
</groupbox>
|
||||
|
||||
<!-- Tracking -->
|
||||
<groupbox id="trackingPanel">
|
||||
<caption>&tracking.label;</caption>
|
||||
<!-- Global Privacy Control -->
|
||||
<groupbox id="dataPrivacyPanel">
|
||||
<caption>&dataPrivacy.label;</caption>
|
||||
<hbox align="center">
|
||||
<checkbox id="privacyDoNotTrackCheckbox"
|
||||
label="&dntTrackingNotOkay.label2;"
|
||||
accesskey="&dntTrackingNotOkay.accesskey;"
|
||||
preference="privacy.donottrackheader.enabled"/>
|
||||
<checkbox id="privacyGPCCheckbox"
|
||||
label="&sendGPCheader.label;"
|
||||
accesskey="&sendGPCheader.accesskey;"
|
||||
preference="privacy.GPCheader.enabled"/>
|
||||
<separator class="thin"/>
|
||||
<label class="text-link" id="doNotTrackInfo"
|
||||
href="https://www.palemoon.org/support/do-not-track"
|
||||
value="&doNotTrackInfo.label;"/>
|
||||
<label class="text-link" id="GPCInfo"
|
||||
href="https://www.palemoon.org/support/global-privacy-control"
|
||||
value="&GPCInfo.label;"/>
|
||||
|
||||
</hbox>
|
||||
</groupbox>
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<!ENTITY tracking.label "Tracking">
|
||||
<!ENTITY dataPrivacy.label "Data Privacy">
|
||||
|
||||
<!ENTITY dntTrackingNotOkay.label2 "Tell sites that I do not want to be tracked">
|
||||
<!ENTITY dntTrackingNotOkay.accesskey "n">
|
||||
<!ENTITY doNotTrackInfo.label "Learn More">
|
||||
<!ENTITY sendGPCheader.label "Tell sites not to share or sell my data">
|
||||
<!ENTITY sendGPCheader.accesskey "n">
|
||||
<!ENTITY GPCInfo.label "Learn More">
|
||||
|
||||
<!ENTITY history.label "History">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue