tor-browser

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

sxg-variants-match.tentative.html (774B)


      1 <!DOCTYPE html>
      2 <title>SignedHTTPExchange should be loaded if Variants/Variant-Key match the request</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-variants-match.sxg';
     11  const message = await openSXGInIframeAndWaitForMessage(t, sxgUrl);
     12  assert_equals(message.location, innerURLOrigin() + '/signed-exchange/resources/inner-url.html');
     13  assert_false(message.is_fallback);
     14 }, 'SignedHTTPExchange should be loaded if Variants/Variant-Key match the request');
     15 
     16 </script>
     17 </body>