blob: 038a55b4eae4ddd04c26cdbe12ffb8047a962483 [file] [log] [blame]
<body>
<script src="/resources/js-test-pre.js"></script>
<iframe src="http://localhost:8000/misc/resources/detached-frame-console-subframe.html"></iframe>
<script>
description("Test that printing a console message in a detached frame does not result in a crash.");
onload = function()
{
var w = window.frames[0];
document.body.removeChild(document.getElementsByTagName("iframe")[0]);
// This attempts to print a console error for cross-origin access, and should not crash.
w.location.foobar;
}
</script>
<script src="/resources/js-test-post.js"></script>
</body>