| Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| index 677a9f86819cd94e5a8368f7b80a46ad5fb59109..1314e6b1e99ce2fe9252fd20617ff9119be95bda 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| @@ -1266,12 +1266,12 @@ void HTMLInputElement::defaultEventHandler(Event* evt) {
|
| HTMLFormElement* formForSubmission = m_inputTypeView->formForSubmission();
|
| // Form may never have been present, or may have been destroyed by code
|
| // responding to the change event.
|
| - if (formForSubmission) {
|
| + if (formForSubmission)
|
| formForSubmission->submitImplicitly(evt, canTriggerImplicitSubmission());
|
| - // We treat implicit submission is something like blur()-then-focus(). So
|
| - // we reset the last value. crbug.com/695349.
|
| - setTextAsOfLastFormControlChangeEvent(value());
|
| - }
|
| +
|
| + // We treat implicit submission is something like blur()-then-focus(). So
|
| + // we reset the last value. crbug.com/695349 and crbug.com/700842.
|
| + setTextAsOfLastFormControlChangeEvent(value());
|
|
|
| evt->setDefaultHandled();
|
| return;
|
|
|