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.
Created attachment 308708 [details] Set Response.blob() type correctly when body is a ReadableStream.
Comment on attachment 308708 [details] Set Response.blob() type correctly when body is a ReadableStream. Thanks!
Comment on attachment 308708 [details] Set Response.blob() type correctly when body is a ReadableStream. Clearing flags on attachment: 308708 Committed r216073: <http://trac.webkit.org/changeset/216073>
All reviewed patches have been landed. Closing bug.