tor-browser

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

no-error-event.sub.html (531B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8" />
      3 <title>&lt;link rel="icon"&gt; doesn't fire an error event</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script>
      7  async_test((t) => {
      8    const link = document.createElement("link");
      9    link.rel = "icon";
     10    link.href = "http://{{hosts[][nonexistent]}}";
     11 
     12    link.addEventListener("error", t.unreached_func());
     13    document.head.append(link);
     14    t.step_timeout(() => t.done(), 2000);
     15  }, document.title);
     16 </script>