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 new XMLHttpRequest();
7 function runTest() {
8 document.open();
9 var succeeded = true;
10 try {
11 new XMLHttpRequest();
12 } catch(e) {
13 succeeded = false;
14 }
15 window.parent.ok(succeeded, "Creating XMLHttpRequest failed!");
16 window.parent.SimpleTest.finish();
17 document.close();
18 }
19 </script>
20 </head>
21 <body onload="runTest()">
22 </body>
23 </html>