ASSERTION FAILED: registration in WebCore::SWServerWorker::skipWaiting()
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Jan 2018 23:41:31 +0000 (23:41 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Jan 2018 23:41:31 +0000 (23:41 +0000)
commit983a976703b1ca1a8ff67b910e63d142dd31dd09
tree8fac74c9d716073aced1d3bdde0ce6e5d09f4666
parent1b67fe9568cc1c74ee378a0735f7839c5d0f0c36
ASSERTION FAILED: registration in WebCore::SWServerWorker::skipWaiting()
https://bugs.webkit.org/show_bug.cgi?id=181222
<rdar://problem/36332686>

Reviewed by Youenn Fablet.

Source/WebCore:

Replace assertion in SWServerWorker::skipWaiting() that assumes the worker
has a registration. Nowadays, a SWServerWorker can stay alive for a short
period without having a registration, while it is terminating.

No new tests, unskipped existing test.

* workers/service/server/SWServerWorker.cpp:
(WebCore::SWServerWorker::skipWaiting):

LayoutTests:

Unskip test that is no longer flakily crashing.

* TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/workers/service/server/SWServerWorker.cpp