| Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp
|
| index 5cd78721156106c49852e526a316fb28c51c1556..af9ffa19244b24f2fa14e405833cc399e1687018 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp
|
| @@ -72,7 +72,7 @@ class GetCallback : public WebServiceWorkerClientCallbacks {
|
| std::unique_ptr<WebServiceWorkerClientInfo> client =
|
| wrapUnique(webClient.release());
|
| if (!m_resolver->getExecutionContext() ||
|
| - m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + m_resolver->getExecutionContext()->isContextDestroyed())
|
| return;
|
| if (!client) {
|
| // Resolve the promise with undefined.
|
| @@ -85,7 +85,7 @@ class GetCallback : public WebServiceWorkerClientCallbacks {
|
|
|
| void onError(const WebServiceWorkerError& error) override {
|
| if (!m_resolver->getExecutionContext() ||
|
| - m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + m_resolver->getExecutionContext()->isContextDestroyed())
|
| return;
|
| m_resolver->reject(ServiceWorkerError::take(m_resolver.get(), error));
|
| }
|
|
|