[whatwg/fetch] `request.client` may be null is not taken into account (#1296)

The spec says that `request.client` may be null.

> A request has an associated client (null or an environment settings object).

However, the spec does not take this into account in some parts of the spec, e.g.

>   8. If request’s window is "client", then set request’s window to request’s
>   client, if request’s client’s global object is a Window object; otherwise
>   "no-window".
 
>   9. If request’s origin is "client", then set request’s origin to request’s
>   client’s origin.

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

Received on Saturday, 14 August 2021 19:54:31 UTC