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>
3 <script>
5 function s()
6 {
7 var x = document.getElementById("x");
8 x.style.MozBinding = "url(401993-1.xml#foo)";
10 setTimeout(boom, 0);
12 function boom()
13 {
14 var nodes = SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(x));
15 if (!nodes) {
16 setTimeout(boom, 10);
17 return;
18 }
20 var newSpan = document.createElement("span");
21 newSpan.contentEditable = "true";
22 nodes[0].appendChild(newSpan);
23 x.parentNode.removeChild(x);
25 document.documentElement.removeAttribute("class");
26 }
27 }
28 </script>
29 </head>
31 <body onload="s();">
33 <span contenteditable="true"></span>
35 <div id="x"></div>
37 </body>
38 </html>