[w3c/ServiceWorker] Update shouldn't fail due to MIME check or 404 for the incumbent's worker scripts (#1374)

The update check spiders the script resource map of the incumbent worker scripts, but then fails immediately if one script has a non-OK status or fails the MIME check. This means if the incumbent worker is using import-script.js which now 404s, and the updated worker doesn't use import-script.js, the update will fail.

Instead these checks shouldn't fail the whole update, since it's not known whether the new worker will use them.

> For each url → storedResponse of newestWorker’s script resource map:
> ...
> 7. Extract a MIME type from the fetchedResponse’s header list. If this MIME type (ignoring parameters) is not a JavaScript MIME type, asynchronously complete these steps with a network error.
> 8. If fetchedResponse’s type is "error", or fetchedResponse’s status is not an ok status, asynchronously complete these steps with a network error.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1374

Received on Monday, 10 December 2018 08:34:35 UTC