[Webkit-unassigned] [Bug 13141] XMLHttpRequest should set readyState to 0 after abort()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 7 21:43:52 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=13141
ap at webkit.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #16553|review+ |review-
Flag| |
------- Comment #9 from ap at webkit.org 2007-10-07 21:43 PDT -------
(From update of attachment 16553)
Actually, this doesn't seem to do what the specification says, namely, step 4
says that readystatechange event shouldn't be fired when zeroing out the state.
Perhaps it would be appropriate to implement the rest of the algorithm in this
patch, but that can be done later, too.
1. Abort the send() algorithm, set the response entity body to "null", the
error flag to "true" and remove any registered request headers.
2. The user agent should cancel any network activity for which the object is
responsible.
3. If the state is UNSENT, OPENED and the send() flag is "false", or DONE go to
the next step.
Otherwise, switch the state to DONE, set the send() flag to "false" and
synchronously dispatch a readystatechange event on the object.
4. Switch the state to UNSENT. (Do not dispatch the readystatechange event.)
Sorry for not catching this earlier.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list