| <script src="../../resources/js-test-pre.js"></script> |
| description("This test passes if it does not crash."); |
| let topFrame = document.body.appendChild(document.createElement('iframe')); |
| let subframe1 = topFrame.contentDocument.body.appendChild(document.createElement('iframe')); |
| subframe1.contentWindow.onunload = () => { |
| subframe1.contentWindow.onunload = null; |
| let subframe2 = topFrame.contentDocument.body.appendChild(document.createElement('iframe')); |
| if (!subframe2.contentWindow) { |
| setTimeout(finishJSTest, 0); |
| subframe2.contentWindow.onunload = () => { |
| subframe2.contentWindow.onunload = null; |
| let a = topFrame.contentDocument.createElement('a'); |
| setTimeout(finishJSTest, 0); |
| topFrame.src = 'about:blank'; |
| <script src="../../resources/js-test-post.js"></script> |