tor-browser

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

insert-dir-rule-in-iframe-crash.html (687B)


      1 <!DOCTYPE html>
      2 <title>CSSOM Test: Chrome crash inserting :dir rule in iframe</title>
      3 <link rel="help" href="https://crbug.com/1486351">
      4 <p>PASS if no crash.</p>
      5 <iframe srcdoc='<!DOCTYPE html>
      6                <style id="sheet"> </style>
      7                <div id="host"></div>
      8                <script>
      9                  let root = host.attachShadow({mode:"open"});
     10                  root.innerHTML = "<slot></slot>";
     11                  host.offsetTop;
     12                  host.innerHTML = "<span>Green</span>";
     13                  sheet.sheet.insertRule("html:dir(ltr) { color: green; }");
     14                  getComputedStyle(host).color;
     15                </script>
     16                '>
     17 </iframe>