3 <script src=
"../../../resources/js-test.js"></script>
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.");
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
);
22 <body onload=
"runTest()">