Skip to content

Commit c03933d

Browse files
committed
Remove hasUploadListeners flag
1 parent 047e82a commit c03933d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

fetch.bs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8597,8 +8597,6 @@ method steps are:
85978597
https://github.com/whatwg/dom/issues/1031#issuecomment-1233206400 -->
85988598
</ol>
85998599

8600-
<li><p>Let <var>hasUploadListeners</var> be false.
8601-
86028600
<li><p>Let <var>monitor</var> be null.
86038601

86048602
<li>
@@ -8614,9 +8612,6 @@ method steps are:
86148612
<li><p>[=invoke|Invoke=] <var>monitorCallback</var> with <var>args</var>
86158613
and <code>"rethrow"</code>. If this throws an exception, <a for=/>reject</a> <var>p</var> with it
86168614
and return <var>p</var>.
8617-
8618-
<li><p>If one or more <a event><code>requestprogress</code></a> event listeners were added to
8619-
<var>monitor</var>, then set <var>hasUploadListeners</var> to true.
86208615
</ol>
86218616

86228617
<li><p>Let <var>requestBodyTransmitted</var> be 0.
@@ -8635,7 +8630,7 @@ method steps are:
86358630

86368631
<li><p>If not roughly 50ms has passed since these steps were last invoked, then return.
86378632

8638-
<li><p>If <var>hasUploadListeners</var> is true, then <a>fire a progress event</a> named
8633+
<li><p>If <var>monitor</var> is not null, then <a>fire a progress event</a> named
86398634
<a event><code>requestprogress</code></a> at <var>monitor</var> with <var>requestBodyTransmitted</var>
86408635
and <var>requestBodyLength</var>.
86418636
</ol>
@@ -8644,7 +8639,7 @@ method steps are:
86448639
<p>Let <var>processRequestEndOfBody</var> be these steps:
86458640

86468641
<ol>
8647-
<li><p>If <var>hasUploadListeners</var> is false, then return.
8642+
<li><p>If <var>monitor</var> is null, then return.
86488643

86498644
<li><p><a>Fire a progress event</a> named <a event><code>requestprogress</code></a> at <var>monitor</var>
86508645
with <var>requestBodyTransmitted</var> and <var>requestBodyLength</var>.

0 commit comments

Comments
 (0)