| <title>Crash doing open on destroyed window</title> |
| var ifr = document.createElement('iframe'); |
| ifr.onload = function() { |
| var win = ifr.contentWindow; |
| ifr.parentNode.removeChild(ifr); |
| win.open('pantz', '_top'); |
| document.body.appendChild(ifr); |
| // Test with a deconnected iframe. |
| var ifr = document.createElement('iframe'); |
| ifr.onload = function() { |
| var win = ifr.contentWindow; |
| ifr.parentNode.removeChild(ifr); |
| document.body.appendChild(ifr); |
| // Test with a new iframe. |
| var ifr = document.createElement('iframe'); |
| var ifr2 = document.createElement('iframe'); |
| ifr.onload = function() { |
| var win = ifr.contentWindow; |
| ifr.parentNode.removeChild(ifr); |
| document.body.appendChild(ifr); |
| <body onload="testCrash()"> |
| <p> Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=19588">19588</a>: CRASH doing open() on destroyed window</p> |
| <p> If this page does not crash the test has passed. </p> |