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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html b/third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html
new file mode 100644
index 0000000000000000000000000000000000000000..667792d108c84828bbcd6addbf7390d77a0d9278
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<body>
+ <form action="javascript: redirect()"></form>
+</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.
+<script>
+var f1 = document.forms[0];
+test(function() {
+ f1.parentNode.removeChild(f1);
+ f1.submit();
+}, 'Submitting a form that has been removed.');
+
+var f2 = document.createElement('form');
+f2.action = "javascript: redirect()";
+test(function() {
+ f2.submit();
+}, 'Submitting a form that has never been attached to the document.');
+
+function redirect() { assert_true(false); }
+</script>
« 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