New issue
Advanced search Search tips

Issue 724433 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocked on:
issue 792880



Sign in to add a comment

A blob created from a fetch response does not correctly get type set

Reported by jhab...@gmail.com, May 19 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
Fetch a file with header "Content-Type: text/css; charset=utf-8". Reduced test case available here: https://bl.ocks.org/jhabdas/87f8bc3573cf91b4c35e0c799addd762

What is the expected behavior?
blob type is set to "text/css; charset=utf-8"

What went wrong?
blob type is set to just "text/css" and `charset` property not included

Did this work before? No 

Chrome version: 58.0.3029.110  Channel: stable
OS Version: OS X 10.12.4
Flash Version: Shockwave Flash 133.7 r001

Related spec issue:

https://github.com/whatwg/fetch/issues/540

Related browser issues:
https://bugs.webkit.org/show_bug.cgi?id=170849
https://bugzilla.mozilla.org/show_bug.cgi?id=1362824
https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12009681/
 
Components: -Blink Blink>Network>FetchAPI
Labels: Hotlist-Interop
Status: Available (was: Unconfirmed)
Labels: -OS-Mac OS-All
It's using the result saved in the mime_type argument of HttpUtil::ParseContentType() where parameters are omitted.

It's currently not conforming to the Fetch Standard.
Regarding the URLSearchParams based example in https://github.com/whatwg/fetch/issues/540, the Response constructor sets the values specified in the standard (hard coded).

I think we should converge to Firefox and Edge. Agreed with Anne basically.
https://github.com/whatwg/fetch/issues/540#issuecomment-302641220

Comment 6 Deleted

Comment 7 Deleted

Comment 8 Deleted

Comment 9 by jhab...@gmail.com, May 22 2017

Left an F.YI in the related \We.bKit issue
Cc: domfarolino@gmail.com
Blockedon: 792880
This is tested by https://github.com/w3c/web-platform-tests/pull/7764 now.
I'll take a look at this and potentially own it.

Sign in to add a comment