blob: 7edebe9bd88d96be9552a2a514653a35940f1eac [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>Parent is isolated, child is not isolated, child is same-origin to the parent</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script type="module">
import {
insertIframe,
testSameAgentCluster,
testOriginIsolationRestricted
} from "./resources/helpers.mjs";
promise_setup(async () => {
await insertIframe("{{hosts[][]}}");
});
// Since they're same-origin, and the parent loaded with isolation, the
// child's non-request for isolation gets ignored, and both end up origin-keyed.
testSameAgentCluster([self, 0]);
testOriginIsolationRestricted(self, true, "parent");
testOriginIsolationRestricted(0, true, "child");
</script>