[tor-commits] [torbutton/master] Bug 16622: Timezone spoofing moved to tor-browser.git

gk at torproject.org gk at torproject.org
Thu Nov 24 14:18:30 UTC 2016


commit 86dd5f30f7b6b29d6eb7e1947c225cd3cc43021b
Author: Arthur Edelstein <arthuredelstein at gmail.com>
Date:   Mon Nov 14 10:49:20 2016 -0800

    Bug 16622: Timezone spoofing moved to tor-browser.git
---
 src/chrome/content/torbutton.js | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 139cb41..c0fe710 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -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();
 



More information about the tor-commits mailing list