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

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: "Final nit update" Created 4 years, 3 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 <script>
7 var f1 = document.forms[0];
8 test(function() {
9 f1.parentNode.removeChild(f1);
10 f1.submit();
11 }, 'Submitting a form that has been removed.');
12
13 var f2 = document.createElement('form');
14 f2.action = "javascript: redirect()";
15 test(function() {
16 f2.submit();
17 }, 'Submitting a form that has never been attached to the document.');
18
19 function redirect() {
20 assert_unreached('A form should never be submitted if it is not attached to th e document.');
21 }
22
23 </script>
24 </body>
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