tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug827541.html (795B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Tell the cycle collector about the audio contexts owned by nsGlobalWindow</title>
      5  <script 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">
     12  var iframe = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
     13  document.body.appendChild(iframe);
     14  var frameWin = iframe.contentWindow;
     15  new frameWin.AudioContext();
     16  document.body.removeChild(iframe);
     17  expectException(() => new frameWin.AudioContext(),
     18                  DOMException.INVALID_STATE_ERR);
     19 
     20  // This test should not leak.
     21 </script>
     22 </pre>
     23 </body>
     24 </html>