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 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=862540
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 862540</title>
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 <script type="application/javascript">
13 /** Test for Bug 862540 **/
14 window.status = 5;
15 is(window.status, 5, "Should be able to get 5");
17 window.status = { toString: function() { return "foo"; } };
18 ok(window.status === "foo", "Should be coercing window.status to string");
20 </script>
21 </head>
22 <body>
23 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=862540">Mozilla Bug 862540</a>
24 <p id="display"></p>
25 <div id="content" style="display: none">
27 </div>
28 <pre id="test">
29 </pre>
30 </body>
31 </html>