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 <!DOCTYPE HTML>
2 <html>
3 <head><meta charset=utf-8>
4 <title>Test for creating DOMParser() after docoment.write() blanks the page</title>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
7 </head>
8 <body>
9 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=820841">Mozilla Bug 820841</a>
10 <p id="display"></p>
11 <div id="content" style="display: none">
13 </div>
14 <pre id="test">
15 <script class="testbody" type="text/javascript">
17 /** Test for Bug 820841 **/
19 function startTest() {
20 document.getElementById("testFrame")
21 .setAttribute("src", "iframe_domparser_after_blank.html");
22 }
24 SimpleTest.waitForExplicitFinish();
25 addLoadEvent(startTest);
28 </script>
29 </pre>
30 <iframe id="testFrame">
31 </body>
32 </html>