Re: Streams and Blobs

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
> > HEADERS_RECEIVED state.
>
> 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