| Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
|
| index 0b5a2177a24f84f37d095a0ccf459d8efba63944..00558812de31ef5da45d8b177a33940a45701da5 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
|
| @@ -102,8 +102,7 @@ void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::resolve(
|
| ASSERT_NOT_REACHED();
|
| return;
|
| }
|
| - if (!getExecutionContext() ||
|
| - getExecutionContext()->activeDOMObjectsAreStopped())
|
| + if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
|
| return;
|
| m_resolved = value;
|
| resolveOrReject(Resolved);
|
| @@ -117,8 +116,7 @@ void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::reject(
|
| ASSERT_NOT_REACHED();
|
| return;
|
| }
|
| - if (!getExecutionContext() ||
|
| - getExecutionContext()->activeDOMObjectsAreStopped())
|
| + if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
|
| return;
|
| m_rejected = value;
|
| resolveOrReject(Rejected);
|
|
|