Descriptionservice worker: Wait for inflight requests before activating
This patch makes changes as per discussion at
https://github.com/slightlyoff/ServiceWorker/issues/916
Namely,
* The waiting worker gets promoted to active once there are no
controllees and the incumbent worker has no in-flight events
(fetch/sync/push/message etc).
* skipWaiting bypasses the no controllees requirement, but we
still wait until there are no in-flight events.
* As usual, incoming fetch/sync/push events always go to the
active worker.
BUG=616331
Committed: https://crrev.com/6c95b0ff8f694cda918e38c96387e5445713fc8e
Cr-Commit-Position: refs/heads/master@{#405628}
Patch Set 1 #Patch Set 2 : wip #Patch Set 3 : private #
Total comments: 2
Patch Set 4 : wanderview #Patch Set 5 : rebase #
Total comments: 9
Patch Set 6 : nhiroki-san #
Total comments: 22
Patch Set 7 : rebase #Patch Set 8 : comments #
Total comments: 2
Patch Set 9 : reg #Messages
Total messages: 33 (13 generated)
|