ServiceWorkerRegistration::updateStateFromServer fix! (Don't always create a new...
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Nov 2017 01:13:27 +0000 (01:13 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Nov 2017 01:13:27 +0000 (01:13 +0000)
commit3aa4bb4fd91887fd4cf76c5f93b60290ed74dbef
tree1d1fe65642041ea9ecd48955adf6e8ce411c0324
parent0acae14018535eec7c7356dbf6ee7db2c01cf3eb
ServiceWorkerRegistration::updateStateFromServer fix! (Don't always create a new ServiceWorker every time).
https://bugs.webkit.org/show_bug.cgi?id=179456

Reviewed by Chris Dumez.

No new tests (No behavior change yet).

* workers/service/ServiceWorkerRegistration.cpp:
(WebCore::ServiceWorkerRegistration::updateStateFromServer): Re-use a previous worker instead of always creating a new one.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/workers/service/ServiceWorkerRegistration.cpp