[tor-commits] [torbutton/master] Bug #15502: Wipe blob URIs on New Identity

mikeperry at torproject.org mikeperry at torproject.org
Tue Apr 21 00:27:09 UTC 2015


commit 2568365dfa0ce8ebc2f5f430b4c752ca57b2fc97
Author: Arthur Edelstein <arthuredelstein at gmail.com>
Date:   Mon Apr 13 10:41:44 2015 -0700

    Bug #15502: Wipe blob URIs on New Identity
---
 src/chrome/content/torbutton.js |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index b4b3ab5..2fdfd1c 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -1884,6 +1884,12 @@ function torbutton_do_new_identity() {
 
   torbutton_log(3, "New identity successful");
 
+  // Run garbage collection and cycle collection after window is gone.
+  // This ensures that blob URIs are forgotten.
+  window.addEventListener("unload", function (event) {
+    m_tb_domWindowUtils.garbageCollect();
+  });
+
   // Close the current window for added safety
   window.close();
 }





More information about the tor-commits mailing list