tor-browser

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

sxg-noncacheable.tentative.html (745B)


      1 <!DOCTYPE html>
      2 <title>Loading SignedHTTPExchange with non-cacheable response must fail</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="/common/get-host-info.sub.js"></script>
      6 <script src="./resources/sxg-util.js"></script>
      7 <body>
      8 <script>
      9 promise_test(async (t) => {
     10  const sxgUrl = get_host_info().HTTPS_ORIGIN + '/signed-exchange/resources/sxg/sxg-noncacheable.sxg';
     11  const message = await openSXGInIframeAndWaitForMessage(t, sxgUrl);
     12  assert_equals(message.location, innerURLOrigin() + '/signed-exchange/resources/inner-url.html');
     13  assert_true(message.is_fallback);
     14 }, 'Loading SignedHTTPExchange with non-cacheable response must fail');
     15 
     16 </script>
     17 </body>