Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 <!DOCTYPE html>
2 <html>
3 <body>
4 </body>
5 <script>
6 addEventListener('message', function(e) {
7 if (e.data == 'clear') {
8 navigator.mozApps.getSelf().onsuccess = function() {
9 this.result.clearBrowserData();
10 document.body.innerHTML = "<done></done>";
11 };
12 }
13 });
14 </script>
15 </html>