DescriptionService Worker: Remove legacy code for resolving register() to a version
register() resolves to a ServiceWorkerRegistration, so we no longer need
to pass a ServiceWorkerVersion around.
This also cleans up a couple TODOs in RegisterJob:
- In ContinueWithRegistrationForSameScriptUrl, the TODO made sense when
register resolved to a version not a registration.
Now, the current behavior seems OK.
- In UpdateAndContinue, the TODO was misleading. We don't have to handle
an existing installing worker within RegisterJob since each job either
succeeds with a waiting/active worker or fails and cleans up the
installing worker.
BUG=406240
Committed: https://crrev.com/da5382d00deafd9909ef02612cd7d4d0b65e4d74
Cr-Commit-Position: refs/heads/master@{#297131}
Patch Set 1 #
Total comments: 1
Patch Set 2 : only resolve on active_version #Messages
Total messages: 11 (2 generated)
|