tor-browser

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

reason-constructor.html (503B)


      1 <!DOCTYPE HTML>
      2 <meta charset=utf-8>
      3 <title>AbortSignal.reason constructor</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <iframe id="iframe"></iframe>
      7 <script>
      8  test(() => {
      9    const aborted = iframe.contentWindow.AbortSignal.abort();
     10    assert_equals(aborted.reason.constructor, iframe.contentWindow.DOMException, "DOMException is using the correct global");
     11  }, "AbortSignal.reason.constructor should be from iframe");
     12 </script>