WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 46012
71985
XMLHttpRequest: multiple open() do not trigger multiple readystatechange events
https://bugs.webkit.org/show_bug.cgi?id=71985
Summary
XMLHttpRequest: multiple open() do not trigger multiple readystatechange events
Deqing Huang
Reported
2011-11-09 18:08:37 PST
According to the XHR spec, a readystatechange event should be fired after the open() method is invoked. But when invoking open() for multiple times, the readystatechange event is seen only once. TEST:
http://tc.labs.opera.com/apis/XMLHttpRequest/open-open-send.htm
This test case passes in FireFox7
Attachments
Add attachment
proposed patch, testcase, etc.
Deqing Huang
Comment 1
2011-11-10 00:44:22 PST
Checking WebCore code I found following comments in XMLHttpRequest::open() // Check previous state to avoid dispatching readyState event // when calling open several times in a row. So apparently this behavior is designed deliberately. Question is, does it conform to the XHR spec?
Alexey Proskuryakov
Comment 2
2011-11-10 11:18:09 PST
Per
bug 17481
, all browsers used to not dispatch the event in this case. Sounds like this could be a mistake in the spec that Firefox picked up.
Deqing Huang
Comment 3
2011-11-10 19:05:33 PST
Ok, that sounds good to me. I will see if the test case should be updated.
Julien Chaffraix
Comment 4
2011-11-10 21:11:17 PST
It looks like the behavior of FF (we need to see the other browsers) has changed since the code was written. We did not get the spec updated at the time so more investigation needs to go in before closing this bug.
Alexey Proskuryakov
Comment 5
2013-02-11 14:19:32 PST
*** This bug has been marked as a duplicate of
bug 46012
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug