Description(Reland) Evict Service Worker when reading it from disk cache fails.
If reading the SW resources from the disk cache fails, we should evict
the worker or else we will keep getting the same failure.
This patch unsets the worker from the live registration, and then
deletes the registration if the SW was the stored version.
This relands the original commit (64e3ffb1c), and fixes a problem where
the test terminated before the eviction, which starts on the IO thread,
then hops to the database task runner, finishes. Now the test ends by
looking up the registration in storage, which hops to the database task
runner, so it can only finish once eviction finishes.
Original patch: https://codereview.chromium.org/1098083003/
BUG=448003
Committed: https://crrev.com/0e476caf67493d79b6dc40891e7ef8868871983e
Cr-Commit-Position: refs/heads/master@{#327260}
Patch Set 1 : original patch #Patch Set 2 : new patch #Patch Set 3 : check context #
Total comments: 2
Patch Set 4 : review comments #
Messages
Total messages: 10 (3 generated)
|