Re: [whatwg/fetch] Initial resource timing integration. (#1185)

@annevk commented on this pull request.



> +<p>To <dfn>handle response end</dfn>, given <a for=/>fetch params</a> <var>fetchParams</var> and
+<a for=/>response</a> <var>response</var>, perform the following steps:
+<ol>
+  <li>Set <var>fetchParams</var>'s <a for="fetch params">timing info</a>'s
+  <a for="fetch timing info">response end time</a> to the <a for=/>unsafe shared current time</a>.
+  <li>Let <var>request</var> be <var>fetchParams</var>'s <a for="fetch params">request</a>.
+  <li>Let <var>globalObject</var> be <a for="fetch params">request</a>'s
+  <a for=request>client</a>'s <a for="environment settings object">global object</a>.
+  <li>Let <var>timingInfo</var> be <var>fetchParams</var>'s <a for="fetch params">timing info</a>.
+  <li>Let <var>requestedURL</var> be <var>response</var>'s <a for=response>URL list</a>'s first
+  item.
+  <li>Return, if <var>request</var>'s <a for=request>destination</a> is one of the following:
+  <ul>
+    <li><code>"report"</code>
+    <li><code>"document"</code>
+    <li><code>"frame"</code>

In that case you only want "document", yes, but navigations in a child context are not automatically reported to the parent so more might be needed there...

-- 
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/pull/1185#discussion_r591452445

Received on Wednesday, 10 March 2021 12:37:05 UTC