tor-browser

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

file_autoplay_gv_play_request_frame.html (663B)


      1 <!DOCTYPE HTML>
      2 <html>
      3  <head>
      4    <title>GV autoplay play request test</title>
      5    <script type="text/javascript" src="manifest.js"></script>
      6    <script type="text/javascript" src="AutoplayTestUtils.js"></script>
      7    <script src="/tests/SimpleTest/EventUtils.js"></script>
      8 </head>
      9 <body>
     10 <script>
     11 
     12 window.addEventListener("message",
     13  (event) => {
     14    // Here we just want to test if media can start from iframe correctly, and
     15    // we don't really care about if it's audible or not.
     16    const isMuted = false;
     17    playAndPostResult(isMuted, event.source);
     18  });
     19 let w = window.opener || window.parent;
     20 w.postMessage("ready", "*");
     21 
     22 </script>
     23 </body>
     24 </html>