blob: 8c823fa36f5bc2321ca87f2e0f4d1bb5cb164c0e [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>Parent is origin-keyed, child is site-keyed, child is a subdomain of the parent</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]}}");
});
// Since they're different-origin, the parent's request is respected, as is the
// child's non-request. So the parent ends up in the origin-keyed agent cluster
// and the child ends up in the site-keyed one.
testDifferentAgentClusters([self, 0]);
testGetter(self, true, "parent");
testGetter(0, false, "child");
</script>