W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Synchronous XMLHttpRequest and events

From: Jonas Sicking <jonas@sicking.cc>
Date: Fri, 13 May 2011 13:07:03 -0700
Message-ID: <BANLkTikDQXLW+gQVEvuMp_iuk=OAKSDmDA@mail.gmail.com>
To: Webapps WG <public-webapps@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT