[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torbutton/master] Bug #5926: Allow spoofing of javascript locale to en-US.



commit da3286e36773c5ed7e0519dbc4956ef15ee407ff
Author: Arthur Edelstein <arthuredelstein@xxxxxxxxx>
Date:   Fri Oct 10 15:41:19 2014 -0700

    Bug #5926: Allow spoofing of javascript locale to en-US.
---
 src/chrome/content/torbutton.js |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 44020ec..7fddf07 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -2030,6 +2030,7 @@ 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");
         } else {
           if(m_tb_prefs.prefHasUserValue("intl.accept_languages"))
             m_tb_prefs.clearUserPref("intl.accept_languages");
@@ -2037,6 +2038,8 @@ function torbutton_update_fingerprinting_prefs() {
             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");
         }
       } else {
         m_tb_prefs.setIntPref("browser.display.max_font_attempts",-1);

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits