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 | <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait"><script><![CDATA[ |
michael@0 | 2 | |
michael@0 | 3 | function init() { |
michael@0 | 4 | var docElt = document.documentElement; |
michael@0 | 5 | var div1 = document.getElementById("div1"); |
michael@0 | 6 | var div2 = document.getElementById("div2"); |
michael@0 | 7 | var textNode = div2.childNodes[0]; |
michael@0 | 8 | |
michael@0 | 9 | function first() |
michael@0 | 10 | { |
michael@0 | 11 | docElt.appendChild(div2); |
michael@0 | 12 | div2.appendChild(div1); |
michael@0 | 13 | } |
michael@0 | 14 | |
michael@0 | 15 | function second() |
michael@0 | 16 | { |
michael@0 | 17 | div2.appendChild(div1); |
michael@0 | 18 | div1.appendChild(textNode); |
michael@0 | 19 | document.documentElement.removeAttribute("class"); |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | first(); |
michael@0 | 23 | setTimeout(second, 30); |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | window.addEventListener("load", init, false); |
michael@0 | 27 | |
michael@0 | 28 | ]]></script><div xmlns="http://www.w3.org/1999/xhtml" id="div1"><div id="div2">A Z</div></div></svg> |