Skip to content

Commit 759dbf8

Browse files
committed
HTML: window.open() without a browsing context
See whatwg/html#11798
1 parent 496eb8b commit 759dbf8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<meta charset=utf-8>
3+
<title>window.open() without a browsing context</title>
4+
<script src=/resources/testharness.js></script>
5+
<script src=/resources/testharnessreport.js></script>
6+
<iframe></iframe>
7+
<script>
8+
test(() => {
9+
const iframe = document.querySelector('iframe');
10+
const win = iframe.contentWindow;
11+
iframe.remove();
12+
assert_equals(win.open(), null);
13+
});
14+
</script>

0 commit comments

Comments
 (0)