testing/web-platform/tests/signed-exchange/nested-sxg.tentative.html
author Gabriel Luong <gabriel.luong@gmail.com>
Sun, 13 Jul 2025 02:28:40 +0000 (17 hours ago)
changeset 796385 23185ed855a5b168943bde8ebe8ec946cd83f675
parent 457927 a311734dc9a418f787c0791bea57c0bc0cd8955f
permissions -rw-r--r--
Bug 1972159 - Part 25: Enable Compose Homepage by default and remove associated settings and Nimbus flags r=android-reviewers,devota Differential Revision: https://phabricator.services.mozilla.com/D254598
<!DOCTYPE html>
<title>Nested SignedHTTPExchange</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="./resources/sxg-util.js"></script>
<body>
<script>
promise_test(async (t) => {
  const sxgUrl = get_host_info().HTTPS_ORIGIN + '/signed-exchange/resources/sxg/nested-sxg.sxg';
  const message = await openSXGInIframeAndWaitForMessage(t, sxgUrl);
  assert_equals(message.location, innerURLOrigin() + '/signed-exchange/resources/inner-url.html?fallback-from-nested-sxg');
  assert_true(message.is_fallback);
}, 'Nested SignedHTTPExchange');

</script>
</body>