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
86dd5f30
Commit
86dd5f30
authored
Nov 14, 2016
by
Arthur Edelstein
Committed by
Georg Koppen
Nov 24, 2016
Browse files
Bug 16622: Timezone spoofing moved to tor-browser.git
parent
24e2f3aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/chrome/content/torbutton.js
View file @
86dd5f30
...
...
@@ -891,17 +891,6 @@ function torbutton_update_toolbutton()
torbutton_get_property_string
(
tooltipKey
));
}
// Bug 1506 P4: Timezone spoofing is pretty important
function
torbutton_set_timezone
()
{
/* Windows doesn't call tzset() automatically.. Linux and MacOS
* both do though.. FF3.5 now calls _tzset() for us on windows.
*/
torbutton_log
(
3
,
"
Setting timezone to UTC
"
);
var
environ
=
Components
.
classes
[
"
@mozilla.org/process/environment;1
"
]
.
getService
(
Components
.
interfaces
.
nsIEnvironment
);
environ
.
set
(
"
TZ
"
,
"
UTC
"
);
}
// Bug 1506 P3: Support code for language+uagent spoofing
function
torbutton_get_general_useragent_locale
()
{
try
{
...
...
@@ -1747,8 +1736,6 @@ function torbutton_update_fingerprinting_prefs() {
m_tb_prefs
.
setBoolPref
(
"
extensions.torbutton.resize_new_windows
"
,
mode
);
// XXX: How do we undo timezone?
// Force prefs to be synced to disk
m_tb_prefs
.
savePrefFile
(
null
);
}
...
...
@@ -2026,9 +2013,6 @@ function torbutton_do_startup()
// Bug 1506: Should probably be moved to an XPCOM component
torbutton_do_main_window_startup
();
// Bug 1506: Still want to do this
torbutton_set_timezone
();
// For charsets
torbutton_update_fingerprinting_prefs
();
...
...
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