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>Test AudioDestinationNode as EventTarget</title>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <script type="text/javascript" src="webaudio.js"></script>
7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
8 </head>
9 <body>
10 <pre id="test">
11 <script class="testbody" type="text/javascript">
13 SimpleTest.waitForExplicitFinish();
15 var ac = new AudioContext()
16 ac.destination.addEventListener("foo", function() {
17 ok(true, "Event received!");
18 SimpleTest.finish();
19 }, false);
20 ac.destination.dispatchEvent(new CustomEvent("foo"));
22 </script>
23 </pre>
24 </body>
25 </html>