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 AudioBufferSourceNode</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 var gTest = {
14 length: 2048,
15 numberOfChannels: 1,
16 createGraph: function(context) {
17 var source = context.createBufferSource();
19 source.start(0);
20 source.buffer = null;
21 is(source.buffer, null, "Try playing back a null buffer");
22 return source;
23 },
24 };
26 runTest();
28 </script>
29 </pre>
30 </body>
31 </html>