tor-browser

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

embed-document-under-content-visibility-focus.html (832B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>HTML Test: The embed element represents a document</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <meta name="assert" content="Ensure document finishes load when focus is attempted before the embed is finished loading">
      7 
      8 <style>
      9 .hidden { content-visibility: hidden; }
     10 </style>
     11 <body>
     12  <script>
     13  async_test(t => {
     14    addEventListener('load', t.step_func_done(() => {
     15      assert_true(window.childLoaded);
     16    }));
     17  }, "ensure onload happens");
     18  </script>
     19  <div class=hidden>
     20    <embed id=target src="embed-iframe.html">
     21  </div>
     22  <script>
     23    // Ensure we process style in the hidden object, which normally delays
     24    // load until the embed object is finished loading.
     25    target.focus();
     26  </script>
     27 </body>