OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../../../resources/js-test.js"></script> |
| 4 <script> |
| 5 var childWindow; |
| 6 function runTest() |
| 7 { |
| 8 description("Tests that calling window.open on the contentWindow of a detach
ed frame does not crash or open a new window. You may need to disable popup bloc
king for this test case."); |
| 9 if (window.testRunner) |
| 10 testRunner.setCanOpenWindows(); |
| 11 var ifr = document.createElement("iframe"); |
| 12 ifr.onload = function () |
| 13 { |
| 14 childWindow = ifr.contentWindow; |
| 15 ifr.parentNode.removeChild(ifr); |
| 16 shouldBeNull("childWindow.open('about:blank')"); |
| 17 } |
| 18 document.body.appendChild(ifr); |
| 19 } |
| 20 </script> |
| 21 </head> |
| 22 <body onload="runTest()"> |
| 23 </body> |
| 24 </html> |
OLD | NEW |