Bug 1447592 Do not reset the Spoof English pref after disabling Resist Fingerprinting r?johannh draft
authorTom Ritter <tom@mozilla.com>
Mon, 26 Mar 2018 23:33:39 -0500
changeset 773590 4eeab2fcac2bfcb672f616a4362f94bbcd12bcd2
parent 773589 8a2f1324c5b4e83b1006d34a7a6b32c206530fd8
child 773591 acbe57cfdde0131faed6f40baf07e7d387166445
push id104258
push userbmo:tom@mozilla.com
push dateWed, 28 Mar 2018 04:37:48 +0000
reviewersjohannh
bugs1447592
milestone61.0a1
Bug 1447592 Do not reset the Spoof English pref after disabling Resist Fingerprinting r?johannh MozReview-Commit-ID: MMWYfmUTOr
toolkit/components/resistfingerprinting/LanguagePrompt.jsm
--- a/toolkit/components/resistfingerprinting/LanguagePrompt.jsm
+++ b/toolkit/components/resistfingerprinting/LanguagePrompt.jsm
@@ -85,17 +85,16 @@ class _LanguagePrompt {
   _handleResistFingerprintingChanged() {
     if (Services.prefs.getBoolPref(kPrefResistFingerprinting)) {
       Services.prefs.addObserver(kPrefSpoofEnglish, this);
       if (this._shouldPromptForLanguagePref()) {
         Services.obs.addObserver(this, kTopicHttpOnModifyRequest);
       }
     } else {
       this._removeObservers();
-      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.