tor-browser

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

script-not-executed-after-shutdown.html (653B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>Script is not executed after script thread is shutdown</title>
      4 <meta name="timeout" content="long">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <iframe id="testiframe" src="script-not-executed-after-shutdown-child.html"></iframe>
      8 <script>
      9 async_test(function(t) {
     10  window.script_executed = t.unreached_func("script executed in removed iframe");
     11  let iframe = document.getElementById("testiframe");
     12  iframe.onload = function() {
     13    iframe.parentNode.removeChild(iframe);
     14  };
     15  setTimeout(function() {
     16    t.done();
     17  }, 5000);
     18 });
     19 </script>