Bug 1447592 Do not reset the Spoof English pref after disabling Resist Fingerprinting r=johannh draft
authorTom Ritter <tom@mozilla.com>
Wed, 24 Apr 2019 09:22:04 -0500
changeset 1965451 a550c321f24c823efcb2e8033e6c802f9cd6e44b
parent 1965450 feeb219584667f53e2c6cd2ddcfcaa89fb6ee243
child 1965452 005895738cc1c60a83f731437a5785a0ac195494
child 1978907 a5d945dd5b7070c810b93eddd0232d646b73fc2d
push id352464
push usertritter@mozilla.com
push dateWed, 24 Apr 2019 15:45:15 +0000
treeherdertry@93908d5b6e9a [default view] [failures only]
reviewersjohannh
bugs1447592
milestone60.6.2
Bug 1447592 Do not reset the Spoof English pref after disabling Resist Fingerprinting r=johannh Backports this patch to esr60 just to keep RFPHelper in sync
toolkit/components/resistfingerprinting/RFPHelper.jsm
--- a/toolkit/components/resistfingerprinting/RFPHelper.jsm
+++ b/toolkit/components/resistfingerprinting/RFPHelper.jsm
@@ -94,17 +94,16 @@ class _RFPHelper {
     }
   }
 
   _handleResistFingerprintingChanged() {
     if (Services.prefs.getBoolPref(kPrefResistFingerprinting)) {
       this._addRFPObservers();
     } else {
       this._removeRFPObservers();
-      Services.prefs.setIntPref(kPrefSpoofEnglish, 0);
     }
   }
 
   _handleSpoofEnglishChanged() {
     switch (Services.prefs.getIntPref(kPrefSpoofEnglish)) {
       case 0: // will prompt
         // This should only happen when turning privacy.resistFingerprinting off.
         // Works like disabling accept-language spoofing.