Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Tell the cycle collector about the audio contexts owned by nsGlobalWindow</title>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
7 </head>
8 <body>
9 <pre id="test">
10 <script class="testbody" type="text/javascript">
11 var iframe = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
12 document.body.appendChild(iframe);
13 var frameWin = iframe.contentWindow;
14 new frameWin.AudioContext();
15 document.body.removeChild(iframe);
16 new frameWin.AudioContext();
18 ok(true, "This test should not leak");
19 </script>
20 </pre>
21 </body>
22 </html>