| Index: third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl
|
| diff --git a/third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl
|
| index e3086434b4f8ff97ef1aec9db449c285ec215bdd..c417aaa13010a71a7cf191e88763c26a058ce605 100644
|
| --- a/third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl
|
| @@ -26,8 +26,8 @@
|
| if method.idl_type == 'boolean' else 'return' %}{# void #}
|
| ExecutionContext* executionContext =
|
| ExecutionContext::From(m_scriptState.Get());
|
| - DCHECK(!executionContext->IsContextSuspended());
|
| - if (!executionContext || executionContext->IsContextDestroyed())
|
| + if (!executionContext || executionContext->IsContextSuspended() ||
|
| + executionContext->IsContextDestroyed())
|
| {{return_default}};
|
| if (!m_scriptState->ContextIsValid())
|
| {{return_default}};
|
|
|