Bug 45992
Summary: | XMLHttpRequest: readystatechange event is not dispatched when asynchronous send() is called. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jian Li <jianli> |
Component: | WebCore JavaScript | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | dimich, fishd, jianli, levin |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | All |
Jian Li
XMLHttpRequest: readystatechange event with state DONE is not dispatched when abort() is called.
Test: http://tc.labs.opera.com/apis/XMLHttpRequest/abort-after-send.htm
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Jian Li
It should be: readystatechange event is not dispatched when asynchronous send() is called.
Jian Li
Per the XHR spec:
8. If the asynchronous flag is true run these substeps:
1. Set the send() flag to true.
2. Dispatch a readystatechange event.
The state does not change. The event is dispatched for historical reasons.
Jian Li
Closed. Should be readystatechange event is not dispatched when open() is called.