tor-browser

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

outdent-with-concurrent-dom-modification.html (641B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Outdent with concurrent DOM modification should not crash</title>
      4 <link rel="help" href="https://w3c.github.io/editing/docs/execCommand/">
      5 <script>
      6    function runTest() {
      7        iframe.contentWindow.onpagehide = () => {
      8            tCF3.innerHTML = 1
      9        };
     10        document.execCommand("selectAll");
     11        document.execCommand("outdent");
     12    }
     13 </script>
     14 
     15 <body onload=runTest() contenteditable="" id=tCF1>
     16    <h1>This page should not result in crash</h1>
     17    <ol id=tCF2>
     18        <li id=tCF3> some text
     19            <iframe id=iframe></iframe>
     20        </li>
     21    </ol>
     22 </body>
     23 
     24 </html>