blob: 393821ff8d44c64377089c1abcb5382d9405b90b [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../../resources/js-test-pre.js"></script>
<iframe src="resources/logo.gif"></iframe>
<script>
description('Test if Blink does not crash by form submission in a document with null encoding.');
jsTestIsAsync = true;
function finish() {
testPassed('if not crashed');
finishJSTest();
}
window.onload = function() {
var doc = document.querySelector('iframe').contentDocument;
var form = doc.createElement('form');
form.action = 'javascript:parent.finish()';
form.innerHTML = '<input type="hidden" name="hidden">';
doc.body.appendChild(form);
form.submit();
};
</script>
<script src="../../resources/js-test-post.js"></script>
</body>