DescriptionFix crash in ServiceWorkerRegistrationHandle
Before this patch, when register() fails to install a worker, it would
result in ServiceWorkerRegistrationHandle::OnRegisterFailed nulling out
its reference to the registration in order to allow the registration
to die. This was flawed for two reasons:
- When the handle is destructed, it would dereference the null pointer.
- SWRegistrationHandle is responsible for listening for ref count changes from
Blink-side about the corresponding JavaScript ServiceWorkerRegistration object.
It's a weird state for Handle to forget about the Chromium-side registration
while Blink-side is alive. The Chromium-side Registration lifetime should be
tied to Blink's.
BUG=384119, 396400
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289597
Patch Set 1 #Patch Set 2 : comment fix #
Total comments: 2
Patch Set 3 : add DCHECK #
Messages
Total messages: 7 (0 generated)
|