summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/cross-origin-embedder-policy/non-initial-about-blank.https.html
blob: 7fed1fe58194a2b15b1af4804e2215bcd8353fde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<meta charset=utf-8>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(t => {
  const frame = document.createElement("iframe");
  t.add_cleanup(() => frame.remove());
  let i = 0;
  frame.onload = t.step_func(() => {
    i++;
    assert_equals(frame.contentDocument.URL, "about:blank");
    frame.src = "about:blank";
    if (i == 2) {
      t.done();
    }
  });
  document.body.append(frame);
}, "Cross-Origin-Embedder-Policy and about:blank");
</script>