blob: eccd911165f39aac28eb604ff7481c8000fc8a14 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../../resources/js-test.js"></script>
<iframe id="subframe"></iframe>
<script>
description("Make sure that we do not crash when a frame gets detached in a message event handler.");
jsTestIsAsync = true;
onload = function() {
frames[0].onmessage = function(msg) {
subframe.remove();
gc();
setTimeout(finishJSTest, 0);
}
frames[0].postMessage("foo", "*");
}
</script>
</body>
</html>