| 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 aeeb8785a2b51fbd6b95bea94070fe3c95757245..50a1339357703f5e0f14174311590e91ccf3d44f 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| @@ -1265,8 +1265,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());
|
| + }
|
|
|
| evt->setDefaultHandled();
|
| return;
|
|
|