Browse Source

Bug 16622: Timezone spoofing moved to tor-browser.git

Arthur Edelstein 3 years ago
parent
commit
86dd5f30f7
1 changed files with 0 additions and 16 deletions
  1. 0 16
      src/chrome/content/torbutton.js

+ 0 - 16
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();