Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / open-after-frame-detached.html
blobff2806499a5214f914f91191d287b33bc77712b9
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 var childWindow;
6 function runTest()
8 description("Tests that calling window.open on the contentWindow of a detached frame does not crash or open a new window. You may need to disable popup blocking for this test case.");
9 if (window.testRunner)
10 testRunner.setCanOpenWindows();
11 var ifr = document.createElement("iframe");
12 ifr.onload = function ()
14 childWindow = ifr.contentWindow;
15 ifr.parentNode.removeChild(ifr);
16 shouldBeNull("childWindow.open('about:blank')");
18 document.body.appendChild(ifr);
20 </script>
21 </head>
22 <body onload="runTest()">
23 </body>
24 </html>