commit 5a155065e97eb455e5c5145fa334ec8af40a2f8d Author: Mike Perry mikeperry-git@fscked.org Date: Thu Dec 8 15:23:36 2011 -0800
Bug 4667: Close keep-alive connections on "New Identity"
TBB-only fix. --- src/chrome/content/torbutton.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js index 4730048..01adeb5 100644 --- a/src/chrome/content/torbutton.js +++ b/src/chrome/content/torbutton.js @@ -1491,6 +1491,11 @@ function torbutton_new_identity() { torbutton_clear_cookies(); }
+ // Clear keep-alive + var obsSvc = Components.classes["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService); + obsSvc.notifyObservers(this, "net:prune-all-connections", null); + + // XXX: This may not clear zoom site-specific var cps = Cc["@mozilla.org/content-pref/service;1"]. createInstance(Ci.nsIContentPrefService); cps.removeGroupedPrefs();
tor-commits@lists.torproject.org