DescriptionFix crash when forwarding a request to a null service worker.
This crash occurred when a ServiceWorkerControlleeRequestHandler was
created to handle a subresource request for a provider host with a
controller, but by the time MaybeCreateJob() was created the controller
and active version was removed due to
ServiceWorkerRegistration::DeleteVersion().
In this case, we just tell the URLRequestJob to abort with error rather
than handle the error (e.g., by fall back to network). We don't want to
silently hide the exceptional case in case some bug makes this happen
often.
Also add some general comments and DCHECKs in ServiceWorkerProviderHost
to clarify controller vs active version.
BUG=655910
Committed: https://crrev.com/ba53250ca4a45cc39c9381ad3bfaa990532aaa78
Cr-Commit-Position: refs/heads/master@{#440742}
Patch Set 1 #Patch Set 2 : comment #Patch Set 3 : ok #Patch Set 4 : fix #Messages
Total messages: 18 (12 generated)
|