commit f43320d131c9e64c1dbd396582de3d057edc3fe1 Author: Mike Perry mikeperry-git@fscked.org Date: Fri Aug 26 13:36:52 2011 -0700
Bug #523: Clear content prefs as part of new identity
See also #3229. These things are written to disk now.. --- 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 8316511..ee4b03e 100644 --- a/src/chrome/content/torbutton.js +++ b/src/chrome/content/torbutton.js @@ -1281,6 +1281,7 @@ function torbutton_send_ctrl_cmd(command) { * f. http auth * g. SSL Session IDs * h. last open location url + * i. clear content prefs * 4. Sends tor the NEWNYM signal to get a new circuit * * XXX: intermediate SSL certificates are not cleared. @@ -1401,6 +1402,10 @@ function torbutton_new_identity() { torbutton_clear_cookies(); }
+ var cps = Cc["@mozilla.org/content-pref/service;1"]. + createInstance(Ci.nsIContentPrefService); + cps.removeGroupedPrefs(); + // Force prefs to be synced to disk var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService);
tor-commits@lists.torproject.org