tor-browser

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

testdriver-iframe.sub.html (801B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <title>reftests support testdriver.js in iframes</title>
      4 <link rel="match" href="green.html">
      5 <script src="/resources/testdriver.js"></script>
      6 <script src="/resources/testdriver-vendor.js"></script>
      7 <style>
      8  body {
      9    margin: 0;
     10    padding: 0;
     11    width: 100%;
     12    height: 100%;
     13  }
     14  iframe {
     15    position: absolute;
     16    border: none;
     17    width: inherit;
     18    height: inherit;
     19  }
     20 </style>
     21 <script>
     22  // Attach the handler that completes the test before loading the calling iframe.
     23  window.addEventListener("message", (evt) => {
     24    if (evt.data === "done") {
     25      document.documentElement.classList.remove("reftest-wait");
     26    }
     27  });
     28 </script>
     29 <iframe src="https://{{host}}:{{ports[https][1]}}/infrastructure/reftest/testdriver-child.html"></iframe>