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 <style>
5 caption { color: green }
6 </style>
8 <script>
9 function boom()
10 {
11 document.body.offsetHeight;
13 var table = document.getElementById("table");
15 var newtbody = document.createElement("tbody");
16 var newrow = document.createElement("tr");
17 var newcell = document.createElement("td");
18 newcell.appendChild(document.createTextNode("a new row 2"));
19 newrow.appendChild(newcell);
20 newtbody.appendChild(newrow);
21 table.insertBefore(newtbody, table.firstChild);
23 var caption = document.createElement("caption");
24 caption.appendChild(document.createTextNode("this is the caption"));
25 table.insertBefore(caption, table.firstChild);
27 newtbody = document.createElement("tbody");
28 newrow = document.createElement("tr");
29 newcell = document.createElement("td");
30 newcell.appendChild(document.createTextNode("a new row 1"));
31 newrow.appendChild(newcell);
32 newtbody.appendChild(newrow);
33 table.insertBefore(newtbody, table.firstChild);
35 document.body.offsetHeight;
36 document.documentElement.className = "";
37 }
38 </script>
40 </head>
41 <body onload="boom();">
42 <table id="table"><tbody>
43 <tr><td>a row</td></tr>
44 </tbody></table>
45 </body>
46 </html>