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>
4 <title>Test for Bug 601803</title>
5 <script type="application/javascript">
6 function runTest() {
7 document.domain = "example.org";
8 var thrown = false;
9 try {
10 document.getElementById("frame").contentDocument.adoptNode(document.createTextNode("foo"));
11 }
12 catch (e) {
13 thrown = true;
14 }
15 parent.postMessage(thrown, "*");
16 }
17 </script>
18 </head>
19 <body>
20 <iframe id="frame" src="http://test1.example.org/tests/content/base/test/file_bug601803b.html" onload="runTest();"></iframe>
21 </body>
22 </html>