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">
3 <head>
5 <script>
7 function init()
8 {
9 var foopy = document.getElementById("foopy");
10 var emb = document.getElementById("emb");
12 try {
13 foopy.appendChild(SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(emb))[0]);
14 emb.parentNode.removeChild(emb);
15 foopy.parentNode.removeChild(foopy);
16 } catch (e) {
17 }
19 document.documentElement.removeAttribute("class");
20 }
23 window.addEventListener("load", function() { setTimeout(init, 30); }, false);
25 </script>
27 </head>
28 <body>
30 <div id="foopy"/>
32 <embed src="data:foo/bar,baz" id="emb" />
34 </body>
35 </html>