Blob channel content type is a little non-standard if type is not set
Categories
(Core :: DOM: File, task, P3)
Tracking
()
People
(Reporter: dlrobertson, Assigned: dlrobertson)
References
Details
Attachments
(1 file, 1 obsolete file)
Given an empty blob with no type set, the Content-Type
will be set to application/x-unknown-content
.
var blob3 = new Blob([]);
fetch(url).then(function(resp) {
assert_equals(resp.headers.get("Content-Type"), "application/x-unknown-content-type");
}
See whatwg/fetch#1436 for more details. Chome returns null
and Safari returns ""
.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
•
|
||
Probably not a high priority, but was something I was interested in fixing (or attempting to fix) as a way to learn more about things.
Assignee | ||
Comment 2•2 years ago
|
||
Set the Content-Type to an empty string for an empty blob when the type was not
given.
Assignee | ||
Comment 3•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2b7d886f374f
https://hg.mozilla.org/mozilla-central/rev/c1d1be434427
Comment 8•2 years ago
|
||
backout |
Backed out from Beta for 105.0b1 for causing bug 1786128. This change is still active in 106+.
https://hg.mozilla.org/releases/mozilla-beta/rev/672222c5bdc8
Comment 11•2 years ago
|
||
Comment 12•2 years ago
|
||
Backed out per request for causing webcompat regressions
Backout link: https://hg.mozilla.org/integration/autoland/rev/33609bd2549a651c42a254d3c314aa28c6856710
Assignee | ||
Comment 13•2 years ago
|
||
I'll move the work I was doing in bug 1786128 here.
Comment 14•2 years ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/33609bd2549a651c42a254d3c314aa28c6856710
Assignee | ||
Comment 16•2 years ago
|
||
Web platform tests from the attached patch merged upstream web-platform-tests/wpt#36243.
Updated•2 years ago
|
Assignee | ||
Comment 17•2 years ago
|
||
Now that whatwg/fetch#1436 and whatwg/fetch#1464 are closed with the tests merged. There is a bit more clarity on how we should handle the empty content type. I'll re-open D147481 with the fix for the regressions listed.
Updated•2 years ago
|
Comment 18•2 years ago
|
||
Comment 19•2 years ago
|
||
bugherder |
Description
•