[or-cvs] r13651: Fix for navigator.buildID leak on some systems. (torbutton/trunk/src/chrome/content)
mikeperry at seul.org
mikeperry at seul.org
Thu Feb 21 09:24:18 UTC 2008
Author: mikeperry
Date: 2008-02-21 04:24:18 -0500 (Thu, 21 Feb 2008)
New Revision: 13651
Modified:
torbutton/trunk/src/chrome/content/jshooks.js
torbutton/trunk/src/chrome/content/torbutton.js
Log:
Fix for navigator.buildID leak on some systems.
Modified: torbutton/trunk/src/chrome/content/jshooks.js
===================================================================
--- torbutton/trunk/src/chrome/content/jshooks.js 2008-02-21 09:20:27 UTC (rev 13650)
+++ torbutton/trunk/src/chrome/content/jshooks.js 2008-02-21 09:24:18 UTC (rev 13651)
@@ -16,6 +16,7 @@
var tmp_productSub = window.__tb_productSub;
window.navigator.__defineGetter__("oscpu", function() { return tmp_oscpu;});
window.navigator.__defineGetter__("productSub", function() { return tmp_productSub;});
+ window.navigator.__defineGetter__("buildID", function() { return 0;});
/*navigator.__defineGetter__("platform", function() { return tmp_platform;});*/
}
Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js 2008-02-21 09:20:27 UTC (rev 13650)
+++ torbutton/trunk/src/chrome/content/torbutton.js 2008-02-21 09:24:18 UTC (rev 13651)
@@ -1078,7 +1078,7 @@
m_tb_prefs.clearUserPref("browser.safebrowsing.remoteLookups");
if(m_tb_prefs.prefHasUserValue("network.security.ports.banned"))
- m_tb_prefs.clearUserPref("extensions.torbutton.banned_ports");
+ m_tb_prefs.clearUserPref("network.security.ports.banned");
}
if((m_tb_prefs.getIntPref("extensions.torbutton.shutdown_method") == 1 &&
More information about the tor-commits
mailing list