tor-browser

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

scroll-timeline-in-removed-iframe-crash.html (591B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <meta name="viewport" content="width=device-width, initial-scale=1">
      6  <title>Starting an animation with a scroll timeline in a removed iframe
      7         should not crash</title>
      8 </head>
      9 <body>
     10  <div id="target"></div>
     11  <iframe id="frame"></iframe>
     12 </body>
     13 <script type="text/javascript">
     14  const target = document.getElementById('target');
     15  const frame = document.getElementById('frame');
     16  const timeline = new frame.contentWindow.ScrollTimeline();
     17  frame.remove();
     18  target.animate(null, {timeline: timeline});
     19 </script>
     20 </html>