Service workers registrations are saved to disk before the install / activation succeeds. This means if the browser exists before the install / activation succeeds, we may restore from disk a registration with an “active” worker which may have never been installed / activated.
<rdar://problem/36591485>
Created attachment 333182 [details] Patch
Comment on attachment 333182 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=333182&action=review > Source/WebCore/ChangeLog:10 > + This means if the browser exists before the install / activation succeeds, we may restore s/exists/exits > Source/WebCore/ChangeLog:12 > + activated. Indeed, this is in particular important for service worker doing some cache storage operations only in install step.
Created attachment 333186 [details] Patch
Comment on attachment 333186 [details] Patch Clearing flags on attachment: 333186 Committed r228180: <https://trac.webkit.org/changeset/228180>
All reviewed patches have been landed. Closing bug.