4 <p id=
"description"></p>
6 <iframe name=
"subframe"></iframe>
8 This tests that window.frames.length does not crash the browser after the
9 frame navigates away from the current page. You should see
"SUCCESS" below
10 once the test completes.
12 <div id=
"status">Test in progress...
</div>
15 if (window
.testRunner
) {
16 window
.testRunner
.dumpAsText();
17 window
.testRunner
.waitUntilDone();
20 var myFrames
= subframe
.frames
;
23 var foo
= myFrames
.length
;
24 document
.getElementById("status").innerText
= "SUCCESS";
25 if (window
.testRunner
)
26 window
.testRunner
.notifyDone();
29 subframe
.document
.location
= "resources/notify-parent-done.html";