diff options
Diffstat (limited to 'testing/web-platform/tests/html/cross-origin-embedder-policy/non-initial-about-blank.https.html')
-rw-r--r-- | testing/web-platform/tests/html/cross-origin-embedder-policy/non-initial-about-blank.https.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/cross-origin-embedder-policy/non-initial-about-blank.https.html b/testing/web-platform/tests/html/cross-origin-embedder-policy/non-initial-about-blank.https.html new file mode 100644 index 0000000000..7fed1fe581 --- /dev/null +++ b/testing/web-platform/tests/html/cross-origin-embedder-policy/non-initial-about-blank.https.html @@ -0,0 +1,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> |