Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Bug 13019: Change locale hiding pref to boolean
Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions .
+3
−3
src/chrome/content/torbutton.js
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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 ) ;
Toggle all file notes
Toggle all file annotations