Skip to content

Commit 62b1bf8

Browse files
riceaannevk
authored andcommitted
Don't fire a "progress" event for synchronous XMLHttpRequest
Only fire a "progress" event during "handle response end-of-body" for asynchronous XMLHttpRequest. This matches most browsers. Tests: web-platform-tests/wpt#10887. Closes #207.
1 parent 0b0dce1 commit 62b1bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xhr.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ method must run these steps:
10471047
<li><p>Let <var>length</var> be <var>response</var>'s <a for=response>body</a>'s
10481048
<a for=body>total bytes</a>.
10491049

1050-
<li><p><a>Fire a progress event</a> named
1050+
<li><p>If the <a>synchronous flag</a> is unset, <a>fire a progress event</a> named
10511051
<a event><code>progress</code></a> with <var>transmitted</var> and <var>length</var>.
10521052

10531053
<li><p>Set <a>state</a> to <i>done</i>.

0 commit comments

Comments
 (0)