From 058d390e6809efc3447dc5fbdc1add11474d2f3a Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Mon, 4 Nov 2024 12:14:12 +0000 Subject: [PATCH] Add finalResponseHeadersStart which is always the 2xx/4xx/5xx response. (#408) responseStart now returns `firstInterimResponseStart` as before, but falls back to `finalResponseHeadersStart` if there is no interim response. Closes #345 --- index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index bb333bc..3d7ef92 100644 --- a/index.html +++ b/index.html @@ -366,6 +366,7 @@

readonly attribute DOMHighResTimeStamp connectEnd; readonly attribute DOMHighResTimeStamp secureConnectionStart; readonly attribute DOMHighResTimeStamp requestStart; + readonly attribute DOMHighResTimeStamp finalResponseHeadersStart; readonly attribute DOMHighResTimeStamp firstInterimResponseStart; readonly attribute DOMHighResTimeStamp responseStart; readonly attribute DOMHighResTimeStamp responseEnd; @@ -636,12 +637,17 @@

global object for this. See [=/HTTP fetch=] for more info.

- The responseStart getter steps are to convert fetch + The finalResponseHeadersStart getter steps are to convert fetch timestamp for this's timing info's [=fetch timing info/final network-response start time=] and the relevant global object for this. See [=/HTTP fetch=] for more info.

+

+ The responseStart getter steps are to return this's + {{PerformanceResourceTiming/firstInterimResponseStart}} if it is not 0; Otherwise + this's {{PerformanceResourceTiming/finalResponseHeadersStart}}. +

The responseEnd getter steps are to convert fetch timestamp for this's {{PerformanceResourceTiming/connectEnd}}, {{PerformanceResourceTiming/requestStart}}, {{PerformanceResourceTiming/firstInterimResponseStart}}, + {{PerformanceResourceTiming/finalResponseHeadersStart}}, {{PerformanceResourceTiming/responseStart}}, {{PerformanceResourceTiming/secureConnectionStart}}, {{PerformanceResourceTiming/transferSize}},