blob: dc829fdfd3a8fa321944fed95f952cf8adf2fb78 [file] [log] [blame]
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function runTest()
{
if (window.testRunner)
testRunner.notifyDone();
var frame = document.getElementById("frame");
var childWindow = frame.contentWindow;
frame.parentNode.removeChild(frame);
try {
childWindow.toolbar.visible;
} catch (e) { }
document.getElementById("console").firstChild.data = "TEST RAN";
}
</script>
</head>
<body>
<p>This tests accessing the visible property of a BarInfo after the relevant frame is no longer in a web page.
If the test did not crash, it passed.<p>
<pre id="console">TEST DID NOT RUN</pre>
<iframe id="frame" src="about:blank" onload="runTest()">
</body>
</html>