blob: f5bd17342e73f48901b371ddc2df0507ea7dfbba [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../../resources/js-test.js"></script>
<script>
jsTestIsAsync = true;
var form1;
var submit1;
function start() {
form1 = document.createElement('form');
submit1 = document.createElement('input');
submit1.type = 'submit';
form1.action = 'javascript:crash()';
form1.appendChild(submit1);
setTimeout(function() {
submit1.click();
testPassed('if not crashed.');
finishJSTest();
}, 0);
}
function crash() {
form1.removeChild(submit1);
form1 = null;
gc();
}
window.onload = start;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>