[Webkit-unassigned] [Bug 173295] [Fetch API] TypeError when called with body === {}

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 14 02:29:24 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=173295

--- Comment #5 from youenn fablet <youennf at gmail.com> ---
(In reply to Aleksandr Motsjonov from comment #4)
> I think I found what was the problem. We were setting body === {}.
> As soon as I removed "body" property for the second argument in these cases
> - it started working again.
> 
> It seems like you guys are ok within requirements:
> 
> > body: Any body that you want to add to your request: this can be a Blob, BufferSource, FormData, URLSearchParams, or USVString object. Note that a request using the GET or HEAD method cannot have a body.
> 
> But error message could be more descriptive. + the fact all other browsers
> work with actual object didn't help =)
> 
> I think this can be closed if you decide so.

Since other browsers are not doing the same, there should be some more investigation on our side.
Is it possible that passing {} will convert it to a USVString?

Now that the binding generator has good support for unions, we should probably update FetchRequest implementation to use it directly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170614/cb1885b7/attachment.html>


More information about the webkit-unassigned mailing list