Re: [whatwg/fetch] WIP: Add a mechanism to fetch to track progress (PR #1843)

@lukewarlow commented on this pull request.



> @@ -9651,6 +9702,61 @@ method steps are:
 
  <li><p>Let <var>relevantRealm</var> be <a>this</a>'s <a>relevant realm</a>.
 
+ <li><p>Let <var>requestMonitor</var> be null.
+
+ <li>
+  <p>If <var>init</var>["{{FetchInit/requestMonitor}}"] <a for=map>exists</a>, then:
+
+  <ol>
+   <li><p>If <var>request</var>'s <a for=request>mode</a> is neither "<code>same-origin</code>" nor
+   "<code>cors</code>", then <a for=/>reject</a> <var>p</var> with a {{TypeError}} and return
+   <var>p</var>.
+
+   <li><p>Set <var>request</var>'s <a for=request>use-CORS-preflight flag</a>.

So this spec text as written matches what XHR does, but not all browsers match how the spec is written.

It seems for XHR that Chrome and Servo both skip preflights when there's no body. But Safari, Firefox and Ladybird all send a preflight despite no body.

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

Message ID: <whatwg/fetch/pull/1843/review/6098407122@github.com>

Received on Saturday, 28 November 2026 14:34:07 UTC