Bug 228004 - Sync XHR 'load' event is always has total/loaded=0
Summary: Sync XHR 'load' event is always has total/loaded=0
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-07-15 13:54 PDT by Chris Dumez
Modified: 2021-07-15 15:53 PDT (History)
7 users (show)

See Also:


Attachments
Patch (6.10 KB, patch)
2021-07-15 13:57 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>