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

Unified Diff: third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp

Issue 2340213002: submit() in submit event handler should not contains a value of a submit button. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp b/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp
index 59c7aaf6d11a1c3f82d5d5fa3d4ce6baaf47d99e..e3b2b0db991f21a9e328959e6ebb58b68b63ddfa 100644
--- a/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp
@@ -66,9 +66,7 @@ void SubmitInputType::handleDOMActivateEvent(Event* event)
{
if (element().isDisabledFormControl() || !element().form())
return;
- element().setActivatedSubmit(true);
- element().form()->prepareForSubmission(event); // Event handlers can run.
- element().setActivatedSubmit(false);
+ element().form()->prepareForSubmission(event, &element()); // Event handlers can run.
event->setDefaultHandled();
}
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/ImageInputType.cpp ('k') | third_party/WebKit/Source/core/loader/FormSubmission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698