ACTION-436: Research what IE does for readystate re-entry (for ISSUE-33)
Research what IE does for readystate re-entry (for ISSUE-33)
- State:
- closed
- Person:
- Travis Leithead
- Due on:
- November 10, 2009
- Created on:
- November 3, 2009
- Associated Issue:
- ISSUE-33
- Related emails:
- No related emails
Related notes:
The following test did not result in any script errors for either the open/send calls--the onreadystatechange event hander just keeps getting called over and over and over again...
Need to determine if any new requests are being sent out...
function doIt() {
var out = null;
xhr.open("GET", "http://www.bing.com")
xhr.onreadystatechange = function(x) {
if (xhr.readyState == 4) {
wr("Onreadystatechange enter");
xhr.open("GET", "http://www.google.com");
xhr.send("Foo");
wr("Onreadystatechange exit");
}
}
xhr.send("Hello World");
}
Checked that indeed, the second open/send combo *is* sending requests to the server over and over again.
It appears that re-entrancy is allowed in IE.
Closing. Please re-open if this analysis is not satisfactory.
Travis Leithead, 3 Nov 2009, 02:01:54Display change log.