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 <script>
5 var total = 50;
6 var loaded = 0;
7 for (var i = 0; i < total; i++) {
8 var f = document.createElement("iframe");
9 document.body.appendChild(f);
10 f.onload = function() {
11 loaded++;
12 if (loaded == total - 1)
13 document.location.replace("about:blank");
14 }
15 f.setAttribute('src', 'devicemotion_inner.html');
16 }
17 </script>
18 </body>
19 </html>