We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 496eb8b commit 759dbf8Copy full SHA for 759dbf8
html/browsers/the-window-object/window-open-no-browsing-context.html
@@ -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