| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <title>Parent is origin-keyed, child is site-keyed, 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, |
| testGetter |
| } from "../resources/helpers.mjs"; |
| |
| promise_setup(async () => { |
| await insertIframe("{{hosts[][]}}", "?1"); |
| }); |
| |
| // Both request origin-keying, and they're same-origin, so they both end up in |
| // the same origin-keyed agent cluster. |
| testSameAgentCluster([self, 0]); |
| |
| testGetter(self, true, "parent"); |
| testGetter(0, true, "child"); |
| </script> |