[Pkg-mozext-commits] [SCM] torbutton Debian packaging branch, master, updated. debian/1.4.1-1

Mike Perry mikeperry-git at fscked.org
Wed Aug 31 07:26:54 UTC 2011


The following commit has been merged in the master branch:
commit f43320d131c9e64c1dbd396582de3d057edc3fe1
Author: Mike Perry <mikeperry-git at 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..

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);

-- 
torbutton Debian packaging



More information about the Pkg-mozext-commits mailing list