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" class="reftest-wait">
2 <head>
4 <bindings xmlns="http://www.mozilla.org/xbl">
5 <binding id="foo">
6 <content>
7 <children xmlns="http://www.mozilla.org/xbl" />
8 </content>
9 </binding>
10 </bindings>
12 <script>
13 function boom()
14 {
15 document.getElementById("div").style.MozBinding = "url('#foo')";
17 var opt1 = document.getElementById("opt1");
18 opt1.removeChild(opt1.firstChild);
20 document.getElementById("textarea").value += " ";
22 document.documentElement.removeAttribute("class")
23 }
24 </script>
26 </head>
28 <body onload="setTimeout(boom, 30);">
30 <div id="div">
31 <textarea rows="3" cols="5" id="textarea"></textarea>
32 </div>
34 <select>
35 <option id="opt1">opt1</option>
36 </select>
38 </body>
39 </html>