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></title>
5 <script type="application/javascript">
6 function runTest() {
7 document.write("<body>");
8 var succeeded = true;
9 try {
10 new XMLHttpRequest();
11 } catch(e) {
12 succeeded = false;
13 }
14 window.parent.ok(succeeded, "Creating XMLHttpRequest failed!");
15 window.parent.nextTest();
16 }
17 </script>
18 </head>
19 <body onload="runTest()">
20 </body>
21 </html>