W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2012

Re: [XHR] Event processing during synchronous request

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 10 Sep 2012 11:07:14 +0200
Message-ID: <CADnb78gSJh3cCUyxpTzRPdW0iCC_bY4Hgymn_JXdQf60Rnnavg@mail.gmail.com>
To: Mike Wilson <mikewse@hotmail.com>
Cc: public-webapps@w3.org
On Mon, Sep 10, 2012 at 10:05 AM, Mike Wilson <mikewse@hotmail.com> wrote:
> Thanks. So I understand it is the HTML specification reference
> that provides details on this behaviour for the XHR spec.
> I'll look further there as its fetching section by itself
> doesn't directly express the relationship between synchronous
> and a stopped event loop (although as a programmer I can infer
> this relationship).

Well yeah, shit's complicated. HTML fetch can be invoked either
synchronously or asynchronously. When invoked synchronously it's as
part of some task already and since the event loop is not manually
spun no other tasks will run at that time. When invoked asynchronously
HTML fetch itself queues tasks on the event loop that then cause
various things to happen per XMLHttpRequest, such as dispatching
progress events.


-- 
http://annevankesteren.nl/
Received on Monday, 10 September 2012 09:07:41 GMT

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