| Summary: | Make abort event sending compliant with XHR spec | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||
| Component: | XML | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED DUPLICATE | ||||||
| Severity: | Normal | CC: | ap, ossy | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
youenn fablet
2014-01-07 05:03:25 PST
XMLHttpRequestUpload events should be sent before XMLHttpRequest events. This reordering may be handled as part of code refactoring done in bug 120828 Created attachment 220528 [details]
potential fix over 120828 patch
WebKit XHR implementation currently sends abort event when its state is DONE and abort() is called. According to spec, the expected behavior should be to not send any abort event, but to ensure that load and loadend events are sent (since XHR is actually DONE). This should happen in particular even when xhr.abort is called in onreadystatechange callback in DONE case. Firefox is behaving this way (no abort event but load and loadend events). Blink currently does not send any load/loadend/abort event at all Please set the r? flag if you would like to ask review. |