Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
torbutton
Commits
2d88aa4d
Commit
2d88aa4d
authored
Oct 18, 2016
by
Arthur Edelstein
Browse files
Bug 20399: Remove obsolete font attempt prefs
parent
2cef7546
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/chrome/content/torbutton.js
View file @
2d88aa4d
...
@@ -1746,12 +1746,6 @@ function torbutton_update_fingerprinting_prefs() {
...
@@ -1746,12 +1746,6 @@ function torbutton_update_fingerprinting_prefs() {
if
(
m_tb_tbb
)
{
if
(
m_tb_tbb
)
{
if
(
mode
)
{
if
(
mode
)
{
// Use TBB pref defaults for these two.
if
(
m_tb_prefs
.
prefHasUserValue
(
"
browser.display.max_font_attempts
"
))
m_tb_prefs
.
clearUserPref
(
"
browser.display.max_font_attempts
"
);
if
(
m_tb_prefs
.
prefHasUserValue
(
"
browser.display.max_font_count
"
))
m_tb_prefs
.
clearUserPref
(
"
browser.display.max_font_count
"
);
// Governed also by the spoof_english dialog..
// Governed also by the spoof_english dialog..
if
(
m_tb_prefs
.
getBoolPref
(
"
extensions.torbutton.spoof_english
"
))
{
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
"
);
...
@@ -1762,9 +1756,6 @@ function torbutton_update_fingerprinting_prefs() {
...
@@ -1762,9 +1756,6 @@ function torbutton_update_fingerprinting_prefs() {
m_tb_prefs
.
setBoolPref
(
"
javascript.use_us_english_locale
"
,
false
);
m_tb_prefs
.
setBoolPref
(
"
javascript.use_us_english_locale
"
,
false
);
}
}
}
else
{
}
else
{
m_tb_prefs
.
setIntPref
(
"
browser.display.max_font_attempts
"
,
-
1
);
m_tb_prefs
.
setIntPref
(
"
browser.display.max_font_count
"
,
-
1
);
if
(
m_tb_prefs
.
prefHasUserValue
(
"
intl.accept_languages
"
))
if
(
m_tb_prefs
.
prefHasUserValue
(
"
intl.accept_languages
"
))
m_tb_prefs
.
clearUserPref
(
"
intl.accept_languages
"
);
m_tb_prefs
.
clearUserPref
(
"
intl.accept_languages
"
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment