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 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <!DOCTYPE HTML>
6 <html>
7 <!--
8 Tests of DOM Worker JSON messages
9 -->
10 <head>
11 <title>Test for DOM Worker Navigator</title>
12 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
13 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
14 </head>
15 <body>
16 <p id="display"></p>
17 <div id="content" style="display: none">
19 </div>
20 <pre id="test">
21 <script src="json_worker.js" language="javascript"></script>
22 <script class="testbody" language="javascript">
24 var worker = new Worker("instanceof_worker.js");
26 worker.onmessage = function(event) {
27 ok(event.data.status, event.data.event);
29 if (event.data.last)
30 SimpleTest.finish();
31 };
33 worker.postMessage(42);
35 SimpleTest.waitForExplicitFinish();
37 </script>
38 </pre>
39 </body>
40 </html>