blob: 5e431e6e41310bb22db730c49deb44886e02dc98 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>Parent is origin-keyed, child is site-keyed, child is different-origin to the parent because of a port mismatch</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[][]}}:{{ports[https][1]}}", "?1");
});
// Both request origin-keying, so the parent ends up in one origin-keyed agent
// cluster (the default port's origin), and the child ends up in a different
// origin-keyed agent cluster (the other port's origin).
testDifferentAgentClusters([self, 0]);
testGetter(self, true, "parent");
testGetter(0, true, "child");
</script>