[w3c/ServiceWorker] Don't fail update upon error fetching the incumbent worker's import s… (#1377)

…cripts.

To include imported scripts in the byte-for-byte comparison, the Update
algorithm fetches the incumbent worker's scripts in order to
detect if there is a difference. But it would abort the update upon
MIME type error of if fetching the script failed. This is undesirable
because the new worker might not use these scripts at all, e.g.,
the scripts may have legitimitely been removed from the server.

To fix this, just set the updated flag upon detecting a difference
and continue with the Update.

Addresses issue #1374.
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1377


-- Commit Summary --

  * Don't fail update upon error fetching the incumbent worker's import scripts.

-- File Changes --

    M docs/index.bs (47)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1377.patch

https://github.com/w3c/ServiceWorker/pull/1377.diff


-- 
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/pull/1377

Received on Wednesday, 19 December 2018 07:06:45 UTC