blob: e6fb989b18f508275af1f09b30d8a871d0e5d3b1 [file] [log] [blame]
<!DOCTYPE html>
<title>Properties of a navigated window shouldn't crash</title>
<p>Accessing properties of a navigated window shouldn't crash</p>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
var func;
function testPhase1() {
var subframe = document.getElementById("subframe");
func = subframe.contentWindow.testFunction;
subframe.src = "resources/navigated-window-prop-subframe2.html";
}
function testPhase2() {
func();
if (window.testRunner)
testRunner.notifyDone();
}
</script>
<iframe id="subframe" src="resources/navigated-window-prop-subframe1.html"></iframe>