DescriptionReland: ServiceWorker: Support includeUncontrolled option in clients.matchAll() (1/2, chromium)
* Add SWContextCore::GetProviderHostByClientID() method
* Add SWContextCore::GetProviderHostIterator() which takes predicate
* Make ServiceWorkerVersion::OnGetClients return uncontrolled host when
* specified
* Make ServiceWorkerVersion::On{PostMessage,Focus} work for uncontrolled
* hosts
(i.e. now ServiceWorker can have clients that are not controlled by it)
Original review: https://codereview.chromium.org/1007133002/
(No changes since then)
Spec links:
https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#serviceworker-client-query-options-dictionary
https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#clients-getall
1/2: THIS PATCH
2/2: blink patch (layout tests will be added here)
BUG=455241
TEST=ServiceWorkerContextTest.GetProviderHostIterator
TEST=layout tests will be added later
TBR=nhiroki
Committed: https://crrev.com/f996ee9f110c214eb78e88ea612ea590c609cae8
Cr-Commit-Position: refs/heads/master@{#321773}
Patch Set 1 #
Messages
Total messages: 5 (1 generated)
|