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 <head>
4 <script type="text/javascript">
6 function boom()
7 {
8 var w = document.getElementById("w");
9 var q = document.getElementById("q");
10 var e = document.createTextNode("");
11 document.documentElement.appendChild(document.body);
12 w.appendChild(e);
13 document.documentElement.offsetHeight;
14 w.removeChild(q);
15 document.documentElement.offsetHeight;
16 e.data += " x ";
17 }
19 </script>
20 </head>
22 <body onload="boom();"><span id="w">s‮<span id="q"></span><div></div><span>a</span></span></body>
23 </html>