DescriptionSimplify ServiceWorkerContainer's access to its window.
Actually two refactorings for navigator.serviceWorker.ready which is
sensitive to lifetimes. No change in behavior.
First, ServiceWorkerContainer is a DOMWindowLifecycleObserver to
access a window for postMessage. But it already has an execution
context that can provide the DOMWindow. Use that instead.
Second, adds an unrelated assertion that the container's
ServiceWorkerContainerClient has been cleaned up by the time that the
container is deleted. To do otherwise is to leave the
ServiceWorkerContainerClient with a dangling pointer to the container.
BUG=363967
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175973
Patch Set 1 #Patch Set 2 : Bring patch to head. #
Messages
Total messages: 5 (0 generated)
|