[Webkit-unassigned] [Bug 179517] New: ServiceWorkerRegistration objects may get recycled for different SWServerRegistration objects
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 9 18:41:08 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=179517
Bug ID: 179517
Summary: ServiceWorkerRegistration objects may get recycled for
different SWServerRegistration objects
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: cdumez at apple.com
CC: beidson at apple.com, ggaren at apple.com,
ryanhaddad at apple.com, youennf at gmail.com
ServiceWorkerRegistration objects may get recycled for different SWServerRegistration objects, leading to flakiness in the tests. Right now, we use ServiceWorkerRegistrationKey as key in the m_registration map on WebProcess side. The lifetime of the ServiceWorkerRegistration objects is tied to the lifetime of their JS wrapper. When the test does a registration for a given scope, then unregisters, then registers again for the same scope, we end up creating a new SWServerRegistration object on server side, but possibly reuse the same ServiceWorkerRegistration object on WebProcess side, if the wrapper has not been garbage collected. This is because the registrations have the same ServiceWorkerRegistrationKey.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171110/ccfb1340/attachment.html>
More information about the webkit-unassigned
mailing list