tor-browser

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

sandbox_002.htm (1048B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>HTML5 Sandbox: Allow autoplay for HTML5 Video inside iframe with sandbox attribute if sandbox='allow-scripts'.</title>
      5    <meta name=timeout content=long>
      6    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
      7    <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      8    <script src="/resources/testharness.js"></script>
      9    <script src="/resources/testharnessreport.js"></script>
     10 </head>
     11 <body>
     12    <script>
     13      async_test(function (t) {
     14        var callback = t.step_func_done(function(event) {
     15          assert_true('sandbox' in document.createElement('iframe'));
     16          assert_equals(event.data, "play event fired");
     17        });
     18 
     19        window.addEventListener("message", callback, false);
     20      }, "Allow autoplay for HTML5 Video inside iframe with sandbox attribute if sandbox='allow-scripts'.");
     21    </script>
     22    <iframe src="support/iframe_sandbox_002.htm" sandbox="allow-scripts" style="display: none"></iframe>
     23    <div id=log></div>
     24 </body>
     25 </html>