blob: 994f80876d5f6d31d74ed73fe2dfeef4f1575684 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>Parent is site-keyed, child is reached via a redirect response with no header, child final response does have the header</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script type="module">
import {
insertIframe,
testDifferentAgentClusters,
testGetter
} from "../resources/helpers.mjs";
promise_setup(async () => {
await insertIframe("{{hosts[][www]}}", "?1", { redirectFirst: true });
});
// Since they're different-origin, the child's request is respected, so the
// parent ends up in the site-keyed agent cluster and the child in the
// origin-keyed one.
testDifferentAgentClusters([self, 0]);
testGetter(self, false, "parent");
testGetter(0, true, "child");
</script>