Re: Fetch API

On Mon, Jun 2, 2014 at 6:59 PM, Anne van Kesteren <> wrote:

> On Thu, May 29, 2014 at 4:25 PM, Takeshi Yoshino <>
> wrote:
> >
> > Add steps to set client and context?
> That happens as part of the "restricted copy". However, that might
> still change around a bit.

Ah, ok.

> >
> > Add steps to set client and context?
> That's an internal algorithm never directly used. You can only get
> there from and that can
> only be reached through an API such as fetch().

Right. But preflight's client and context are not initialized before
invoking HTTP fetch (
client is referred in HTTP fetch.

BTW, "handle a fetch" is a dead link.

> > The promise is rejected with a TypeError which seems inconsistent with
> XHR.
>  > Is this intentional?
> Yes. I wanted to stick to JavaScript exceptions. However, I suspect at
> some point once we have FormData integration and such there might be
> quite a bit of dependencies on DOM in general, so maybe that is moot.

Got it. Thanks.

Received on Wednesday, 4 June 2014 06:14:03 UTC