[w3c/ServiceWorker] Request's origin needs to be set for [[Update]] algorithm (#1447)

Currently [[[Soft Update](https://w3c.github.io/ServiceWorker/#soft-update-algorithm)]] set null as the client, and [[[Update](https://w3c.github.io/ServiceWorker/#update-algorithm)]] uses null client as a fetch client settings object on "Fetch a classic (or module) worker script" without setting [origin of the request](https://fetch.spec.whatwg.org/#concept-request-origin).
That will results in null as the request's [origin](https://fetch.spec.whatwg.org/#concept-request-origin), but it would contradicts with the [request's mode (same-origin)](https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-classic-worker-script).
We would need to set the origin explicitly in the update algorithm.

-- 
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/1447

Received on Tuesday, 9 July 2019 08:12:54 UTC