New issue
Advanced search Search tips

Issue 827935 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Task



Sign in to add a comment

S13nSW: Figure out a way to make sure a controller is running before using ControllerServiceWorker

Project Member Reported by bashi@chromium.org, Apr 2 2018

Issue description

Context: https://chromium-review.googlesource.com/c/chromium/src/+/987832/2/content/browser/service_worker/service_worker_provider_host.h#235

A ptr to ControllerServiceWorker can be obtained from ServiceWorkerProviderHost::GetControllerServiceWorkerPtr() but the method doesn't guarantee that the controller is running. Currently it's callsite's responsibility to make sure that the worker is running, but it would be better to have a consistent way to make sure the worker is running.
 
Labels: -Type-Bug Type-Task

Sign in to add a comment