Clearing a registration should null out its workers before setting their state to...
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Feb 2018 17:33:53 +0000 (17:33 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Feb 2018 17:33:53 +0000 (17:33 +0000)
commitb16ea4e718ce700f7410c9fbf81b8d71af733c21
tree8fb991ab27d58efd206fe15b6553968bca13c2fa
parentdb5ac0bd0b5916fea59ded54d866b3c310f0ee94
Clearing a registration should null out its workers before setting their state to "redundant"
https://bugs.webkit.org/show_bug.cgi?id=182418
<rdar://problem/37142874>

Reviewed by Youenn Fablet.

LayoutTests/imported/w3c:

Rebaseline WPT test now that all checks are passing. I verified that this test is passing
in both Firefox and Chrome.

* web-platform-tests/service-workers/service-worker/activation.https-expected.txt:

Source/WebCore:

Clearing a registration should null out its workers before setting their state to "redundant".
This seems to match Firefox and Chrome.

No new tests, rebaselined existing test.

* workers/service/server/SWServerRegistration.cpp:
(WebCore::SWServerRegistration::clear):
(WebCore::clearRegistrationWorker): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/activation.https-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/workers/service/server/SWServerRegistration.cpp