whatwg / fetch

Fetch Standard
https://fetch.spec.whatwg.org/
Other
2.12k stars 333 forks source link

Verify request's window usage for preloads #1713

Open annevk opened 1 year ago

annevk commented 1 year ago

What is the issue with the Fetch Standard?

I see we are using request's window for a number of things here, but I wonder if that is correct.

In particular a forwarded request in a service worker can have its client set to the service worker environment, but its window would be the document environment where the request originated.

This also seems incompatible with allowing preloads to work in workers as has at least been envisioned.

@noamr I hope you can take a look at this.