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 xmlns="http://www.w3.org/1999/xhtml" style="white-space: pre;" class="reftest-wait"><script><![CDATA[
3 function init() {
4 var docElt = document.documentElement;
5 var firstText = docElt.childNodes[1];
6 var div = docElt.childNodes[2];
7 var bidiText = div.childNodes[0];
9 function first()
10 {
11 docElt.insertBefore(div, firstText);
12 docElt.insertBefore(bidiText, div);
13 }
15 function second()
16 {
17 docElt.insertBefore(div, firstText);
18 docElt.appendChild(bidiText);
19 document.documentElement.removeAttribute("class");
20 }
22 first();
23 setTimeout(second, 100);
25 }
27 window.addEventListener("load", init, false);
29 ]]></script>
31 A<div>׳
32 Z</div></html>