Re: [whatwg/fetch] Pass in response status to mark resource timing (PR #1468)

- The information regarding if there were any cross origin redirects can be determined if needed in fetch, but currently its stored in the [has cross-origin redirects](https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-has-cross-origin-redirects) boolean on navigation params struct in HTML.
- I could see this boolean is used mainly in two places ([[1]](https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigating-across-documents:navigation-params-has-cross-origin-redirects-4),  [[2]](https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigating-across-documents:navigation-params-has-cross-origin-redirects-5)). In both these places we also have access to the response as [navigation param's response](https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-response).
- Is it possible to consider moving the [has cross-origin redirects](https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-has-cross-origin-redirects) boolean as a field to the [response](https://fetch.spec.whatwg.org/#concept-response)? Its value could be determined in the Fetch spec and it could be used as needed in the above two places as well and for our use case as well. This would maybe help us to easily reuse the boolean and not have to try to pass it along. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1468#issuecomment-1274618986
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1468/c1274618986@github.com>

Received on Tuesday, 11 October 2022 12:36:27 UTC