| Index: third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp
|
| diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp
|
| index 6573873469e4dca7afa338204832a0b865f478d8..611dce066528498ef0219f1e16f47de0d67622ec 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp
|
| @@ -31,7 +31,7 @@ void PresentationConnectionCallbacks::onSuccess(
|
| wrapUnique(PresentationConnectionClient.release()));
|
|
|
| if (!m_resolver->getExecutionContext() ||
|
| - m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + m_resolver->getExecutionContext()->isContextDestroyed())
|
| return;
|
| m_resolver->resolve(PresentationConnection::take(
|
| m_resolver.get(), std::move(result), m_request));
|
| @@ -40,7 +40,7 @@ void PresentationConnectionCallbacks::onSuccess(
|
| void PresentationConnectionCallbacks::onError(
|
| const WebPresentationError& error) {
|
| if (!m_resolver->getExecutionContext() ||
|
| - m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + m_resolver->getExecutionContext()->isContextDestroyed())
|
| return;
|
| m_resolver->reject(PresentationError::take(m_resolver.get(), error));
|
| }
|
|
|