Synchronous XMLHttpRequest and events

Hi All,

Currently the XMLHttpRequest Level 2 spec calls for firing no progress
events when a synchronous XMLHttpRequest request is made. It also
doesn't call for any readystatechange events to be fired in response
to any network events.

It *does* however call for a readystatechange event to be fired in
response to the call to .open. Even if the request being started is a
synchronous one.

What is the use case for this event? It seems pretty useless and
inconsistent to me.

Is it a mistake that the spec calls for this event to be fired, or is
it fired out of compatibility concerns?

I'd like to remove this event from firing in Firefox (as part of
fixing a large issue which is that we're firing a whole lot more
events during synchronous operation).

/ Jonas

Received on Friday, 13 May 2011 20:08:00 UTC