blob: 46696e06ea1d07c5f2e1c7eedafcd91d5e16f4f7 [file] [log] [blame]
<html>
<head></head>
<body>
<p id="description"></p>
<br>
<iframe id="subframe"></iframe>
<br>
This tests that window.frames.length does not crash the browser after the
frame navigates away from the current page. You should see "SUCCESS" below
once the test completes.
<br>
<div id="status">Test in progress...</div>
<script>
if (window.testRunner) {
window.testRunner.dumpAsText();
window.testRunner.waitUntilDone();
}
var myFrames = subframe.frames;
function done() {
var foo = myFrames.length;
document.getElementById("status").innerText = "SUCCESS";
if (window.testRunner)
window.testRunner.notifyDone();
}
subframe.document.location = "resources/notify-parent-done.html";
</script>
</body>
</html>