blob: 302bfab1bd5b40d0e84974f8c21f42a1dc47093c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<!DOCTYPE html>
<body>
<script src="../js/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>
</body>
|