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 <html class="reftest-wait">
2 <head>
4 <script>
5 function boom()
6 {
7 document.body.offsetHeight;
9 var lastdiv = document.getElementById("last");
10 var parent = lastdiv.parentNode;
12 for (var i = 2; i <= 4; i++) {
13 var newdiv = document.createElement("div");
14 newdiv.appendChild(document.createTextNode(i));
15 parent.insertBefore(newdiv, lastdiv);
16 }
18 document.body.offsetHeight;
19 document.documentElement.className = "";
20 }
21 </script>
23 </head>
24 <body onload="boom();">
25 <div>1</div>
26 <div id="last">5</div>
27 </body>
28 </html>