summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/origin/origin-keyed-agent-clusters/getter-special-cases/resources/data-url-test.mjs
blob: 1a9b3be47f67b57bc8299def97cc660f6a282b9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { insertCustomIframe, testSupportScript } from "./helpers.mjs";
import { testGetter } from "../../resources/helpers.mjs";

export default () => {
  promise_setup(() => {
    return insertCustomIframe(`data:text/html,${testSupportScript}`);
  });

  // The data: URL iframe has an opaque origin, so it should return true, since
  // for them site === origin so they are always origin-keyed.

  testGetter(0, true, "data: URL child");
};