(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 (64e3ffb1), 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 Review URL: https://codereview.chromium.org/1108253002 Cr-Commit-Position: refs/heads/master@{#327260}
Showing
This diff is collapsed.
Please register or sign in to comment