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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html

Issue 2261393002: Fixed the behaviour of form submit to Firefox: form does not submit once it has been removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review change Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/cookies/same-site/popup-cross-site-post.html » ('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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <body>
5 <form action="javascript: redirect()"></form>
6 </body>
iclelland 2016/08/24 15:41:57 Could you put this line below the script (to move
lunalu1 2016/08/25 15:05:34 Done.
7 <script>
8 var f1 = document.forms[0];
9 test(function() {
10 f1.parentNode.removeChild(f1);
11 f1.submit();
12 }, 'Submitting a form that has been removed.');
13
14 var f2 = document.createElement('form');
15 f2.action = "javascript: redirect()";
16 test(function() {
17 f2.submit();
18 }, 'Submitting a form that has never been attached to the document.');
19
20 function redirect() { assert_true(false); }
21 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/cookies/same-site/popup-cross-site-post.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698