tor-browser

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

ua-shadow-contents-manual.html (702B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta charset="utf-8">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 
      7 <body draggable="true" style="padding:20px">
      8 Drag this input down quickly. Try multiple times. No errors should be reported.<br>
      9 <input type=color>
     10 
     11 <script>
     12 document.body.addEventListener('dragenter', (e) => {
     13  let target = e.relatedTarget;
     14  while (target) {
     15    assert_false(target instanceof ShadowRoot,'Drag events should not expose UA shadow roots');
     16    // This console log can also cause DevTools crashes, so this is explicitly
     17    // left in on purpose:
     18    console.log(target);
     19    target = target.parentNode;
     20  }
     21 });
     22 </script>