summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/origin/origin-keyed-agent-clusters/getter-special-cases/cross-origin-isolated.sub.https.html
blob: a521934cc9e5582d6086e219863e51d1bd9b5127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<meta charset="utf-8">
<title>window.originAgentCluster must be implied by cross-origin isolation</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<iframe src="//{{domains[www1]}}:{{location[port]}}/html/browsers/origin/origin-keyed-agent-clusters/resources/coep-frame.html"></iframe>

<div id="log"></div>

<script type="module">
import { testGetter } from "../resources/helpers.mjs";

setup({ explicit_done: true });

window.onload = () => {
  // Cross-origin isolated pages are always origin-keyed.
  testGetter(self, true, "self");

  // Child frames of cross-origin isolated pages must also be cross-origin
  // isolated, and thus also origin-keyed. Make sure the implementation doesn't
  // treat them specially in some weird way, for the purposes of this
  // implication.
  testGetter(0, true, "child");

  done();
};
</script>