[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #23768 [Applications/Tor Browser]: Update code to wipe indexedDB in New Identity (was: Wipe indexedDB in New Identity)
#23768: Update code to wipe indexedDB in New Identity
-----------------------------------------+--------------------------
Reporter: arthuredelstein | Owner: tbb-team
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Applications/Tor Browser | Version:
Severity: Normal | Resolution:
Keywords: tbb-linkability, tbb-newnym | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
-----------------------------------------+--------------------------
Comment (by arthuredelstein):
I did [https://trac.torproject.org/projects/tor/ticket/23745#comment:8 an
experiment] and found that Tor Browser already wipes indexedDB on New
Identity.
I think the relevant code is here:
https://gitweb.torproject.org/torbutton.git/tree/src/chrome/content/torbutton.js?id=b3ff9863db338b2bd612f109e8bbce4c4af7cbd0#n1151
{{{
let orig_quota_test =
m_tb_prefs.getBoolPref("dom.quotaManager.testing");
try {
// This works only by setting the pref to `true` otherwise we get an
// exception and nothing is happening.
m_tb_prefs.setBoolPref("dom.quotaManager.testing", true);
Cc["@mozilla.org/dom/quota-manager-service;1"]
.getService(Ci.nsIQuotaManagerService).clear();
} catch(e) {
torbutton_log(5, "Exception on storage clearing: "+e);
} finally {
m_tb_prefs.setBoolPref("dom.quotaManager.testing", orig_quota_test);
}
}}}
Unfortunately, it's a little hacky because we are having to set the
"dom.quotaManager.testing" pref. Maybe it would be better to adopt the
code from https://hg.mozilla.org/mozilla-central/rev/0fbe00ad0203#l1.42.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23768#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs