angular-docs-cn/packages/service-worker/worker
George Kalpakas cb2ca9a66e fix(service-worker): correctly handle unrecoverable state when a client no longer exists (#42736)
Previously, the ServiceWorker assumed that a client found in
`clientVersionMap` would exist (i.e. it could be retrieved via
`clients.get()`). However, if a browser tab had been closed, the
corresponding client (while present in `clientVersionMap`, which is only
updated on ServiceWorker initialization) would not be retrievable via
`clients.get()`.

This commit fixes it by checking whether the client exists before trying
to notify it about an unrecoverable state.

PR Close #42736
2021-07-08 10:28:22 -07:00
..
src fix(service-worker): correctly handle unrecoverable state when a client no longer exists (#42736) 2021-07-08 10:28:22 -07:00
test fix(service-worker): correctly handle unrecoverable state when a client no longer exists (#42736) 2021-07-08 10:28:22 -07:00
testing test(service-worker): better align mock global scope implementation with actual implementation (#42736) 2021-07-08 10:28:22 -07:00
BUILD.bazel build: enable service-worker tests on saucelabs (#36129) 2020-04-01 15:37:47 -07:00
main.ts refactor(service-worker): simplify accessing `CacheStorage` throughout the ServiceWorker (#42622) 2021-06-24 09:55:32 -07:00