blob: c4917819617fc9f99a306c75b070299bab8f6302 [file] [log] [blame] [edit]
<!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[][]}}", "?1");
});
// Both request isolation, and they're same-origin, so they both end up in the
// same origin-keyed agent cluster.
testSameAgentCluster([self, 0]);
testOriginIsolationRestricted(self, true, "parent");
testOriginIsolationRestricted(0, true, "child");
</script>