Bug 228004

Summary: Sync XHR 'load' event is always has total/loaded=0
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Page LoadingAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, darin, ggaren, sam, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Chris Dumez 2021-07-15 13:54:50 PDT
Sync XHR 'load' event is always has total/loaded=0. It should reflect the actual amount of data transferred.

This is causing the following WPT test to fail in WebKit:
- http://wpt.live/xhr/send-sync-response-event-order.htm

This test is passing in Firefox and Chrome.
Comment 1 Chris Dumez 2021-07-15 13:57:57 PDT
Created attachment 433622 [details]
Patch
Comment 2 Alex Christensen 2021-07-15 15:43:10 PDT
Comment on attachment 433622 [details]
Patch

As much as I hate improving sync xhr, this is probably good.
Comment 3 EWS 2021-07-15 15:52:59 PDT
Committed r279967 (239710@main): <https://commits.webkit.org/239710@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 433622 [details].
Comment 4 Radar WebKit Bug Importer 2021-07-15 15:53:16 PDT
<rdar://problem/80655750>