| 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 82dee5c3093090f07e209f6bcfafdb4c5f17249f..85fe58d781cea6784e392d05a70eb8b65f2e2f02 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| @@ -1223,7 +1223,7 @@ void HTMLInputElement::defaultEventHandler(Event* evt)
|
| if (m_inputTypeView->shouldSubmitImplicitly(evt)) {
|
| // FIXME: Remove type check.
|
| if (type() == InputTypeNames::search)
|
| - document().postTask(BLINK_FROM_HERE, createSameThreadTask(&HTMLInputElement::onSearch, this));
|
| + document().postTask(BLINK_FROM_HERE, createSameThreadTask(&HTMLInputElement::onSearch, retainedRef(this)));
|
| // Form submission finishes editing, just as loss of focus does.
|
| // If there was a change, send the event now.
|
| if (wasChangedSinceLastFormControlChangeEvent())
|
|
|