tor-browser

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

sxg-version1b2.tentative.html (899B)


      1 <!DOCTYPE html>
      2 <title>Loading SignedHTTPExchange of unsupported version 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 <p>Note: This test FAILs if your browser supports Signed Exchange version 1b2.</p>
      9 <script>
     10 promise_test(async (t) => {
     11  const sxgUrl = get_host_info().HTTPS_ORIGIN +
     12                 '/signed-exchange/resources/sxg-version1b2.sxg';
     13  const message = await openSXGInIframeAndWaitForMessage(t, sxgUrl);
     14  const innerURL = innerURLOrigin() +
     15                   '/signed-exchange/resources/inner-url.html';
     16  assert_equals(message.location, innerURL);
     17  assert_true(message.is_fallback);
     18 }, 'Loading SignedHTTPExchange of unsupported version must fail and fallback redirect.');
     19 </script>
     20 </body>