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