tor-browser

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

dialog-showModal-inert-crash.html (491B)


      1 <!DOCTYPE html>
      2 
      3 <!-- This test passes if it does not crash. -->
      4 
      5 <iframe id="frame"></iframe>
      6 <script>
      7  window.onload = () => {
      8    const host = document.createElement("div");
      9    frame.appendChild(host);
     10    frame.contentDocument.body.innerHTML = "<dialog></dialog>";
     11    document.body.offsetTop;
     12    const root = host.attachShadow({mode: 'open'});
     13    root.innerHTML = "<content>";
     14    const dialog = frame.contentDocument.querySelector("dialog");
     15    dialog.showModal();
     16  };
     17 </script>