Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: LayoutTests/fast/forms/form-submit-in-image-document.html

Issue 26960002: Don't crash by form submission in a document with null encoding. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/forms/form-submit-in-image-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/form-submit-in-image-document.html
diff --git a/LayoutTests/fast/forms/form-submit-in-image-document.html b/LayoutTests/fast/forms/form-submit-in-image-document.html
new file mode 100644
index 0000000000000000000000000000000000000000..f57a8e5af0c726b99a48c7834e8afb798a0a85c6
--- /dev/null
+++ b/LayoutTests/fast/forms/form-submit-in-image-document.html
@@ -0,0 +1,26 @@
+<!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>
+<script src="../js/resources/js-test-post.js"></script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/form-submit-in-image-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698