Chromium Code Reviews| 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)) |
|
jsbell
2014/07/01 16:16:48
Is the assertion in the destructor still valid if
xiang
2014/07/02 05:10:43
I will remove assertion in desctructor as it's not
|
| return; |
| ServiceWorkerGlobalScopeClient* client = ServiceWorkerGlobalScopeClient::from(executionContext()); |