Bug 45992 - XMLHttpRequest: readystatechange event is not dispatched when asynchronous send() is called.
Summary: XMLHttpRequest: readystatechange event is not dispatched when asynchronous se...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-17 13:32 PDT by Jian Li
Modified: 2010-09-17 16:10 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jian Li 2010-09-17 13:32:36 PDT
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
Comment 1 Jian Li 2010-09-17 15:37:59 PDT
It should be: readystatechange event is not dispatched when asynchronous send() is called.
Comment 2 Jian Li 2010-09-17 15:39:42 PDT
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.
Comment 3 Jian Li 2010-09-17 16:10:26 PDT
Closed. Should be readystatechange event is not dispatched when open() is called.