[Webkit-unassigned] [Bug 171489] New: Response.blob() has empty type when created with a ReadableStream and content-type header
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Apr 30 19:31:33 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=171489
Bug ID: 171489
Summary: Response.blob() has empty type when created with a
ReadableStream and content-type header
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Platform
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ben at wanderview.com
WebKit is currently failing this WPT test:
fetch/api/response/response-consume.html
On the "from stream to blob" case.
This test is basically:
var data = 'hello world';
var stream = new ReadableStream({
start: function(controller) {
controller.enqueue(stringToArray(data));
controller.close();
}
});
var r = new Response(stream, { headers: [['content-type', 'text/plain']] });
r.blob().then(b => assert_equals(b.type, 'text/plain'));
WebKit is failing because whenever a ReadableStream is passed as the body of the Response the blob() output will have an empty string Blob.type.
--
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/20170501/3cb62feb/attachment-0001.html>
More information about the webkit-unassigned
mailing list