tor-browser

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

404-with-early-hints.html (505B)


      1 <!DOCTYPE html>
      2 <meta charset=utf-8>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="early-hints-helpers.sub.js"></script>
      6 <body>
      7 <script>
      8 promise_test(async (t) => {
      9    const params = new URLSearchParams(window.location.search);
     10    const resource_url = params.get("resource-url");
     11    await fetchImage(resource_url);
     12    assert_true(isPreloadedByEarlyHints(resource_url));
     13 }, "404 with an early hints preload.");
     14 </script>
     15 </body>