W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

Re: Streams and Blobs

From: Jonas Sicking <jonas@sicking.cc>
Date: Fri, 15 Mar 2013 12:13:42 -0700
Message-ID: <CA+c2ei_Q1LG5t8zet+N-PkkrEkTRr=XEhY_M4WbpX+Ro0T9R+w@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: WebApps WG <public-webapps@w3.org>
On Mar 15, 2013 5:33 AM, "Anne van Kesteren" <annevk@annevk.nl> wrote:
> On Fri, Mar 15, 2013 at 10:07 AM, Jonas Sicking <jonas@sicking.cc> wrote:
> > For a sync XHR in Workers, if .responseType is set to "stream" when
> > XHR.send() is called, we block until the HEADERS_RECEIVED state is
> > reached. At that point we return from the .send() function and return
> > a newly constructed Stream object. Note that reading from the Stream
> > object should likely not be permitted synchronously, even within
> > workers. So all that's synchronous here is waiting until we reach the
> I think this is very weird. XMLHttpRequest governs network transfers.
> If XMLHttpRequest just terminates at that point, something is missing.

It is definitely different, but I don't see any actual problems with it.
I.e. I don't think it'll be hard for authors to understand, nor do I think
it'll lead to subtle bugs.

/ Jonas
Received on Friday, 15 March 2013 19:14:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:59 UTC