Open jyasskin opened 1 year ago
Yeah, I'd recommend using
If window is "no-window", then return false.
if you really mean that. But note that window can be set for requests that pass through a service worker. If you really care about the environment that's currently making the request, you want client.
Should request be allowed to use feature? has
However, request's window is '("no-window", "client", or an environment settings object whose global object is a Window object)'. That is, it can be an environment settings object, but it can't be a Window. This is confusing, but makes the algorithm here wrong.