tor-browser

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

remove-document-element-of-iframe-having-style-content.html (426B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>Testcase for bug 643706 of Mozilla</title>
      6 <script>
      7 function boom() {
      8  const iframe = document.querySelector("iframe");
      9  const win = iframe.contentWindow;
     10  win.document.designMode = 'on';
     11  iframe.style.content = "'m'";
     12  win.document.removeChild(win.document.documentElement)
     13 }
     14 </script>
     15 </head>
     16 <body onload="boom();"><iframe srcdoc=""></iframe></body>
     17 </html>