Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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>