tor-browser

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

test_youtube_flash_embed.html (1061B)


      1 <!DOCTYPE HTML>
      2 <html>
      3  <!--
      4       https://bugzilla.mozilla.org/show_bug.cgi?id=1240471
      5     -->
      6  <head>
      7    <meta charset="utf-8">
      8    <title>Test for Bug 1240471</title>
      9    <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11    <script type="application/javascript">
     12     SimpleTest.waitForExplicitFinish();
     13     let path = location.pathname.substring(0, location.pathname.lastIndexOf('/')) + '/file_youtube_flash_embed.html';
     14     onmessage = function(e) {
     15       let msg = JSON.parse(e.data);
     16       if (msg.fn == "finish") {
     17         SimpleTest.finish();
     18         return;
     19       }
     20       self[msg.fn].apply(null, msg.args);
     21     }
     22     function onLoad() {
     23       // The test file must be loaded into youtube.com domain
     24       // because it needs unprivileged access to fullscreenEnabled.
     25       ifr.src = "https://mochitest.youtube.com" + path;
     26     }
     27    </script>
     28  </head>
     29  <body onload="onLoad()">
     30    <iframe id="ifr" allowfullscreen></iframe>
     31  </body>
     32 </html>