Commit c39a9540 authored by Georg Koppen's avatar Georg Koppen
Browse files

Bug 16887: Update intl.accept_languages value

We previously spoofed the `intl.accept_languages` value to "en-us, en"
but with the update to ESR 38 Firefox does not like the lower case
country code anymore. See: and for the reasons
behind that.

We adapt our code accordingly and set the default value to "en-US, en"
now. This fixes #13277 as well.

Thanks for this patch, cypherpunk.
parent 1d4e0280
......@@ -2207,10 +2207,10 @@ function torbutton_update_fingerprinting_prefs() {
// Governed also by the spoof_english dialog..
// Governed also by the spoof_english dialog..
if (m_tb_prefs.getBoolPref("extensions.torbutton.spoof_english")) {
m_tb_prefs.setCharPref("intl.accept_languages", "en-us, en");
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.setBoolPref("javascript.use_us_english_locale", true);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment