| 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 bc831eae8850eae024eb2329425d8431d9476ad3..22bbf832533f5183b7c5cfe70e0b029ce7b79cd8 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| @@ -1179,6 +1179,8 @@ void HTMLInputElement::postDispatchEventHandler(Event* event, void* dataFromPreD
|
| OwnPtrWillBeRawPtr<ClickHandlingState> state = adoptPtrWillBeNoop(static_cast<ClickHandlingState*>(dataFromPreDispatch));
|
| if (!state)
|
| return;
|
| + // m_inputTypeView could be freed if the type attribute is modified through a change event handler.
|
| + RefPtrWillBeRawPtr<InputTypeView> protect(m_inputTypeView.get());
|
| m_inputTypeView->didDispatchClick(event, *state);
|
| }
|
|
|
|
|