whatwg / xhr

XMLHttpRequest Standard
https://xhr.spec.whatwg.org/
Other
314 stars 129 forks source link

Use extract a length from Fetch #317

Closed annevk closed 3 years ago

annevk commented 3 years ago

The only information browsers use for progress events for responses is the Content-Length header.

Align on that and only use body's length concept for uploads.

Tests: web-platform-tests/wpt#27837.

Fetch PRs: whatwg/fetch#1183 & whatwg/fetch#1184.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

annevk commented 3 years ago

@yutakahirano could you please review this? It will successfully build as soon as the Fetch change is indexed, but the Preview and Diff links are working already so I think reviewing should be possible. Thanks!

annevk commented 3 years ago

Thanks @yutakahirano, should be good now.