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

Unified Diff: Source/core/html/HTMLFormElement.cpp

Issue 171603007: Allow form submission for forms with "hidden" for submit with enter key (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missing text expectation file added Created 6 years, 10 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 | « LayoutTests/platform/win/fast/forms/implicit-submission-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormElement.cpp
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
index 7e5a7859d87924d3238f3ac9ad3b22a6f35a131a..2664f33712e00bb2e30a77dc27781de50b14bd0d 100644
--- a/Source/core/html/HTMLFormElement.cpp
+++ b/Source/core/html/HTMLFormElement.cpp
@@ -202,10 +202,8 @@ void HTMLFormElement::submitImplicitly(Event* event, bool fromImplicitSubmission
if (fromImplicitSubmissionTrigger)
seenDefaultButton = true;
if (control->isSuccessfulSubmitButton()) {
- if (control->renderer()) {
- control->dispatchSimulatedClick(event);
- return;
- }
+ control->dispatchSimulatedClick(event);
+ return;
} else if (fromImplicitSubmissionTrigger) {
// Default (submit) button is not activated; no implicit submission.
return;
« no previous file with comments | « LayoutTests/platform/win/fast/forms/implicit-submission-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698