ServiceWorker: Expose ServiceWorker interface to ServiceWorker
The ServiceWorker spec requires to expose it to ServiceWorker, but Blink has exposed it only to Window: https://w3c.github.io/ServiceWorker/#serviceworker-interface Instances of the ServiceWorker interface have been available on ServiceWorkerGlobalScope for a long time via |self.registration|, so this isn't exposing anything new (see https://crbug.com/437677). Ideally, this should also be exposed to DedicatedWorker and SharedWorker, but this CL doesn't do it. This is because Blink hasn't supported ServiceWorker APIs on the workers yet, and exposing the interface to the workers may churn feature detections etc (see https://crbug.com/371690). Bug: 999023 Change-Id: I5b36706d4d09dd830af00097bc9c724e3adf56b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1775942 Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Reviewed-by:
Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#692391}
Showing
Please register or sign in to comment