Re: [whatwg/fetch] [draft] Pass in content type to resource-timing (PR #1481)

@noamr commented on this pull request.



> @@ -4383,6 +4383,13 @@ steps:
 
      <li><p>Let <var>bodyInfo</var> be <var>response</var>'s <a for=response>body info</a>.
 
+     <li><p>Let <var>mimeType</var> be the empty string if <var>fetchParams</var>'s
+     <a for="fetch params">request</a>'s <a for=request>mode</a> is "<code>navigate</code>" and
+     <var>response</var>'s <a for=response>URL</a>'s <a for=url>origin</a> is not
+     <a>same origin</a> with <var>request</var>'s <a for=request>origin</a>, and
+     result of <a for="header list">extracting a MIME type</a> from <var>response</var>'s

> What @noamr did elsewhere (e.g. with "body info" is to only initialize it when the response is not opaque. It might be worthwhile to repeat the same pattern (or hook the info you want here into "body info" itself, as mime type kinda feels related.
> 
> @noamr - thoughts?

Yes mime-type should be inside `body info`.

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

Message ID: <whatwg/fetch/pull/1481/review/1095918445@github.com>

Received on Monday, 5 September 2022 06:40:31 UTC