credentialmanagement icon indicating copy to clipboard operation
credentialmanagement copied to clipboard

Fetch nits

Open annevk opened this issue 11 years ago • 3 comments

In https://mikewest.github.io/credentialmanagement/writeonly/#opaque-formdata step 3.1 needs to discuss fetch().

Fetch was updated today (sorry) and the "as generic" algorithm is now "consume body".

I suspect you also need to patch Response as otherwise it could be used to make FormData less opaque. Which I think indicates this needs to be sorted at FormData's serialization level rather than a per-API thing.

annevk avatar Sep 05 '14 15:09 annevk

What are you thinking about with regard to Response?

I agree that this is something that should be dealt with at a centralized location rather than monkeypatching a variety of APIs. That's what I hoped I'd be able to do by poking at the extraction algorithm and whatever you end up calling "consume body" tomorrow. :)

If this ends up being something that anyone other than me cares about, I'll pick your brain for reasonable ways of dealing with the problem.

mikewest avatar Sep 05 '14 18:09 mikewest

Addressed the two nits. Still curious about the Response note.

mikewest avatar Sep 06 '14 15:09 mikewest

new Response(fd).formData()

annevk avatar Sep 07 '14 07:09 annevk