[Fetch API] Response.blob should not assert in case the created blob is empty
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Aug 2016 16:22:09 +0000 (16:22 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Aug 2016 16:22:09 +0000 (16:22 +0000)
commitacfa6cbcabfaa1924bec79ed82fc445a3fbcca6a
treed9fa81c39ca45bc3f973f8d0e039ec2885beeb46
parent6ee3c50ee2dbb936ae6e0f3b332bd6cb3ae2083a
[Fetch API] Response.blob should not assert in case the created blob is empty
https://bugs.webkit.org/show_bug.cgi?id=160592

Patch by Youenn Fablet <youenn@apple.com> on 2016-08-05
Reviewed by Alex Christensen.

LayoutTests/imported/w3c:

* web-platform-tests/fetch/api/request/request-consume-expected.txt:
* web-platform-tests/fetch/api/request/request-consume.html: Adding response with empty blob test.

Source/WebCore:

Covered bu updated test.

* Modules/fetch/FetchBodyConsumer.cpp:
(WebCore::FetchBodyConsumer::takeAsBlob): Removing assertion as a response may have a body but with no data in it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-consume-expected.txt
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-consume.html
Source/WebCore/ChangeLog
Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp