Skip to content
Permalink
Browse files
Bug 13019: Change locale hiding pref to boolean
  • Loading branch information
arthuredelstein committed Mar 25, 2015
1 parent 2359bd8 commit dcbd97834f991c6b4ef5f86154e6823251511075
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/chrome/content/torbutton.js
@@ -2154,16 +2154,16 @@ function torbutton_update_fingerprinting_prefs() {
m_tb_prefs.setCharPref("intl.accept_languages", "en-us, en");
m_tb_prefs.setCharPref("intl.accept_charsets", "iso-8859-1,*,utf-8");
m_tb_prefs.setCharPref("intl.charsetmenu.browser.cache", "UTF-8");
m_tb_prefs.setCharPref("javascript.default_locale", "en-US");
m_tb_prefs.setBoolPref("javascript.use_us_english_locale", true);
} else {
if(m_tb_prefs.prefHasUserValue("intl.accept_languages"))
m_tb_prefs.clearUserPref("intl.accept_languages");
if(m_tb_prefs.prefHasUserValue("intl.charsetmenu.browser.cache"))
m_tb_prefs.clearUserPref("intl.charsetmenu.browser.cache");
if(m_tb_prefs.prefHasUserValue("intl.accept_charsets"))
m_tb_prefs.clearUserPref("intl.accept_charsets");
if(m_tb_prefs.prefHasUserValue("javascript.default_locale"))
m_tb_prefs.clearUserPref("javascript.default_locale");
if(m_tb_prefs.prefHasUserValue("javascript.use_us_english_locale"))
m_tb_prefs.clearUserPref("javascript.use_us_english_locale");
}
} else {
m_tb_prefs.setIntPref("browser.display.max_font_attempts",-1);

0 comments on commit dcbd978

Please sign in to comment.