| Index: Source/modules/serviceworkers/WaitUntilObserver.cpp
|
| diff --git a/Source/modules/serviceworkers/WaitUntilObserver.cpp b/Source/modules/serviceworkers/WaitUntilObserver.cpp
|
| index 67770666e830b8fc7b85687c6252709008b51bab..bfee27809c03a3fc480d4287504c45e2eef8d133 100644
|
| --- a/Source/modules/serviceworkers/WaitUntilObserver.cpp
|
| +++ b/Source/modules/serviceworkers/WaitUntilObserver.cpp
|
| @@ -108,7 +108,7 @@ void WaitUntilObserver::incrementPendingActivity()
|
| void WaitUntilObserver::decrementPendingActivity()
|
| {
|
| ASSERT(m_pendingActivity > 0);
|
| - if (--m_pendingActivity || !executionContext())
|
| + if (!executionContext() || (!m_hasError && --m_pendingActivity))
|
| return;
|
|
|
| ServiceWorkerGlobalScopeClient* client = ServiceWorkerGlobalScopeClient::from(executionContext());
|
|
|