| Index: third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp b/third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp
|
| index 21cd0d9c22bd68dd44947c440f8390409e47ce07..9d053ddb7418123c015d5eb228489ea01afd66b4 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp
|
| @@ -151,8 +151,7 @@ void V8V0CustomElementLifecycleCallbacks::created(Element* element) {
|
| // FIXME: callbacks while paused should be queued up for execution to
|
| // continue then be delivered in order rather than delivered immediately.
|
| // Bug 329665 tracks similar behavior for other synchronous events.
|
| - if (!getExecutionContext() ||
|
| - getExecutionContext()->activeDOMObjectsAreStopped())
|
| + if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
|
| return;
|
|
|
| if (!m_scriptState->contextIsValid())
|
| @@ -202,8 +201,7 @@ void V8V0CustomElementLifecycleCallbacks::attributeChanged(
|
| // FIXME: callbacks while paused should be queued up for execution to
|
| // continue then be delivered in order rather than delivered immediately.
|
| // Bug 329665 tracks similar behavior for other synchronous events.
|
| - if (!getExecutionContext() ||
|
| - getExecutionContext()->activeDOMObjectsAreStopped())
|
| + if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
|
| return;
|
|
|
| if (!m_scriptState->contextIsValid())
|
| @@ -238,8 +236,7 @@ void V8V0CustomElementLifecycleCallbacks::call(
|
| // FIXME: callbacks while paused should be queued up for execution to
|
| // continue then be delivered in order rather than delivered immediately.
|
| // Bug 329665 tracks similar behavior for other synchronous events.
|
| - if (!getExecutionContext() ||
|
| - getExecutionContext()->activeDOMObjectsAreStopped())
|
| + if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
|
| return;
|
|
|
| if (!m_scriptState->contextIsValid())
|
|
|