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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/forms/form-submit-in-image-document-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../js/resources/js-test-pre.js"></script>
4
5 <iframe src="resources/logo.gif"></iframe>
6
7 <script>
8 description('Test if Blink does not crash by form submission in a document with null encoding.');
9 jsTestIsAsync = true;
10
11 function finish() {
12 testPassed('if not crashed');
13 finishJSTest();
14 }
15
16 window.onload = function() {
17 var doc = document.querySelector('iframe').contentDocument;
18 var form = doc.createElement('form');
19 form.action = 'javascript:parent.finish()';
20 form.innerHTML = '<input type="hidden" name="hidden">';
21 doc.body.appendChild(form);
22 form.submit();
23 };
24 </script>
25 <script src="../js/resources/js-test-post.js"></script>
26 </body>
OLDNEW
« 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