| Index: third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp
|
| diff --git a/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp b/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp
|
| index e0a0f270f146739bbc556fb16536819044ee341e..7094e0d695708bfbbc098b40c815119e994ffdff 100644
|
| --- a/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp
|
| +++ b/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp
|
| @@ -53,7 +53,7 @@ static void rejectWithTypeError(const String& errorDetails,
|
| ScriptPromiseResolver* resolver) {
|
| // Duplicate some of the checks done by ScriptPromiseResolver.
|
| if (!resolver->getExecutionContext() ||
|
| - resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + resolver->getExecutionContext()->isContextDestroyed())
|
| return;
|
|
|
| ScriptState::Scope scope(resolver->getScriptState());
|
| @@ -123,7 +123,7 @@ CryptoResultImpl::CryptoResultImpl(ScriptState* scriptState)
|
| : m_resolver(Resolver::create(scriptState, this)),
|
| m_cancel(ResultCancel::create()) {
|
| // Sync cancellation state.
|
| - if (scriptState->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + if (scriptState->getExecutionContext()->isContextDestroyed())
|
| m_cancel->cancel();
|
| }
|
|
|
|
|