[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r19089: {torbutton} Add code to clear the SSL Session ID cache on toggle. (torbutton/trunk/src/chrome/content)
Author: mikeperry
Date: 2009-03-20 03:28:07 -0400 (Fri, 20 Mar 2009)
New Revision: 19089
Modified:
torbutton/trunk/src/chrome/content/torbutton.js
Log:
Add code to clear the SSL Session ID cache on toggle.
Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js 2009-03-19 20:30:30 UTC (rev 19088)
+++ torbutton/trunk/src/chrome/content/torbutton.js 2009-03-20 07:28:07 UTC (rev 19089)
@@ -1203,6 +1203,14 @@
auth.clearAll();
}
+ // This clears the SSL Identifier Cache.
+ // See https://bugzilla.mozilla.org/show_bug.cgi?id=448747 and
+ // http://mxr.mozilla.org/security/source/security/manager/ssl/src/nsNSSComponent.cpp#2057
+ m_tb_prefs.setBoolPref("security.enable_ssl2",
+ !m_tb_prefs.getBoolPref("security.enable_ssl2"));
+ m_tb_prefs.setBoolPref("security.enable_ssl2",
+ !m_tb_prefs.getBoolPref("security.enable_ssl2"));
+
var lp = m_tb_prefs.getIntPref("network.cookie.lifetimePolicy");
if(lp == 1) {