Skip to content
Permalink
Browse files
Bug #15502: Wipe blob URIs on New Identity
  • Loading branch information
arthuredelstein committed Apr 13, 2015
1 parent 1b2b3ee commit 2568365dfa0ce8ebc2f5f430b4c752ca57b2fc97
Showing with 6 additions and 0 deletions.
  1. +6 −0 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();
}

0 comments on commit 2568365

Please sign in to comment.