This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25131 - Blob response entity body is not built using final MIME type and charset
Summary: Blob response entity body is not built using final MIME type and charset
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: XHR (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-24 04:46 UTC by Takeshi Yoshino
Modified: 2014-06-25 08:09 UTC (History)
3 users (show)

See Also:


Attachments

Description Takeshi Yoshino 2014-03-24 04:46:02 UTC
Blob response entity body is specified to be built from the response entity body.

> 2. Return a Blob object representing the response entity body.

Shouldn't this algorithm also take final MIME type and final charset?

Current behavior of browsers: Both Firefox (28.0) and Chrome (32) copy the MIME type of the received response to the Blob, but not charset.
Comment 1 Anne 2014-03-24 11:44:12 UTC
Yeah it should. I guess I forgot Blob was more than bytes.
Comment 3 Takeshi Yoshino 2014-06-25 07:05:47 UTC
(In reply to Anne from comment #2)
> https://github.com/whatwg/xhr/commit/621fe98f9ff2d29626747b7b10ce1580b473f61f

Thanks. Verified.

As I said in comment #0, charset is not copied now. Current spec matches with them, but how do you think it should be? Also copying charset might be useful.
Comment 4 Anne 2014-06-25 08:09:02 UTC
I thought Blob.prototype.type did not include the charset parameter.