tor-browser

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

generic-eventtarget-crash.html (584B)


      1 <!doctype html>
      2 <meta charset="utf-8" />
      3 <meta name="author" title="Keith Cirkel" href="mailto:wpt@keithcirkel.co.uk" />
      4 <link rel="help" href="https://open-ui.org/components/invokers.explainer/" />
      5 <div id="target"></div>
      6 
      7 <script type="module">
      8  const commandEvent = new CommandEvent('command', { bubbles: true });
      9  document.body.addEventListener('command', e => {
     10    e.source.toString();
     11  });
     12  target.addEventListener('command', e => {
     13    e.source.toString();
     14  });
     15  target.dispatchEvent(commandEvent);
     16  await Promise.resolve();
     17  commandEvent.source.toString();
     18 </script>