blob: 034c8a3090b8e73e98d2927c88f69e7d1fb1e9b9 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>Parent is not isolated, child is 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");
});
// Since they're same-origin, and the parent loaded without isolation, the
// child's request for isolation gets ignored, and both end up site-keyed.
testSameAgentCluster([self, 0]);
testOriginIsolationRestricted(self, false, "parent");
testOriginIsolationRestricted(0, false, "child");
</script>