blob: 7f578e736c42b3554111628d74bbd6610f9fc705 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
<script>
description("Tests window.open() call with an activeDOMWindow that has a null frame.");
debug("This test passes if it doesn't crash.");
window.jsTestIsAsync = true;
if (window.testRunner)
testRunner.setCanOpenWindows(true);
function openWindow()
{
testFrameWindowOpen.call(window);
finishJSTest();
}
function removeSubFrame()
{
var testFrame = document.getElementById("testFrame");
testFrameWindow = testFrame.contentWindow;
testFrameWindowOpen = testFrameWindow.open;
testFrame.remove();
gc();
setTimeout(openWindow, 0);
}
</script>
</head>
<body>
<iframe id="testFrame" src="resources/test-frame.html" onload="removeSubFrame()"></iframe>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>