[Webkit-unassigned] [Bug 46012] XMLHttpRequest: readystatechange event is not dispatched when open() is called.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 19 07:25:45 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=46012


Joe Thomas <joethomas at motorola.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joethomas at motorola.com




--- Comment #1 from Joe Thomas <joethomas at motorola.com>  2012-01-19 07:25:44 PST ---
(In reply to comment #0)
> XMLHttpRequest: readystatechange event is not dispatched when open() is called.
> 
> Per the XHR spec, readystatechange event should be dispatch when we finish processing open().
> 
> TESTS:
> http://tc.labs.opera.com/apis/XMLHttpRequest/abort-after-send.htm
> http://tc.labs.opera.com/apis/XMLHttpRequest/open-after-abort.htm
> http://tc.labs.opera.com/apis/XMLHttpRequest/open-open-send.htm
> http://tc.labs.opera.com/apis/XMLHttpRequest/open-open-sync-send.htm
> http://tc.labs.opera.com/apis/XMLHttpRequest/open-send-open.htm
> http://tc.labs.opera.com/apis/XMLHttpRequest/open-open-sync-send.htm


Currently webkit sends readystatechange event with state "OPENED" when Open() gets called. 

As per w3c spec http://www.w3.org/TR/XMLHttpRequest/#the-send-method, section 4.7.6(8), readystatechange event needs to be called with the same state for asynchronous XMLHTTPRequest once the Send() flag is set. Looks like this is not happening with webkit. Do we need a fix for this ?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list