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