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>.

I wonder whether setting this flag and the rejection above could be gated on whether request even has a body? If there's no body to track upload of then it might be fine to continue without a pre-flight?

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

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

Received on Saturday, 28 November 2026 14:14:52 UTC