- From: Luke Wilde <notifications@github.com>
- Date: Wed, 05 Mar 2025 10:07:02 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/issues/1812@github.com>
Lubrsi created an issue (whatwg/fetch#1812) ### What is the issue with the Fetch Standard? In [fetch response handover](https://fetch.spec.whatwg.org/#fetch-finale), step 3.3.2 sets the timing info's end time to a relative timestamp of a previously captured unsafe shared current time. However, this is incorrect because Resource Timing performs the relative timestamp conversion for us. In [responseEnd](https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-responseend): > The responseEnd getter steps are to [convert fetch timestamp](https://w3c.github.io/resource-timing/#dfn-convert-fetch-timestamp) for [this](https://webidl.spec.whatwg.org/#this)'s [timing info](https://w3c.github.io/resource-timing/#dfn-timing-info)'s [end time](https://fetch.spec.whatwg.org/#fetch-timing-info-end-time) and the [relevant global object](https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global) for [this](https://webidl.spec.whatwg.org/#this). See [fetch](https://fetch.spec.whatwg.org/#concept-fetch) for more info. In [setup the resource timing entry](https://w3c.github.io/resource-timing/#dfn-setup-the-resource-timing-entry): > [Initialize](https://www.w3.org/TR/performance-timeline/#dfn-initialize-a-performanceentry) entry given the result of [converting](https://w3c.github.io/resource-timing/#dfn-convert-fetch-timestamp) timingInfo's [start time](https://fetch.spec.whatwg.org/#fetch-timing-info-start-time) given global, "resource", requestedURL, and the result of [converting](https://w3c.github.io/resource-timing/#dfn-convert-fetch-timestamp) timingInfo's [end time](https://fetch.spec.whatwg.org/#fetch-timing-info-end-time) given global. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/1812 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/issues/1812@github.com>
Received on Wednesday, 5 March 2025 18:07:06 UTC