[Webkit-unassigned] [Bug 213168] Implement Blob.text and Blob.arrayBuffer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 19 01:36:30 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=213168

youenn fablet <youennf at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |youennf at gmail.com
 Attachment #402103|review?                     |review-
              Flags|                            |

--- Comment #6 from youenn fablet <youennf at gmail.com> ---
Comment on attachment 402103
  --> https://bugs.webkit.org/attachment.cgi?id=402103
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=402103&action=review

> Source/WebCore/ChangeLog:14
> +        without `ReadableStream` implementation.

Since the goal is to go with supporting ReadableStream at some point, we should probably extract existing functionality from FetchBodyOwner/FetchBoydConsumer.
Ideally, split FetchBodyOwner in two classes, one that will continue be the base class from FetchRequest and FetchResponse, plus be an ActiveDOMObject.
And the other one which can be reused jointly with FetchBodyConsumer to implement text/arrayBuffer/ReadableStream.

> Source/WebCore/fileapi/BlobPromiseLoader.cpp:65
> +    delete this;

This is a risky pattern.
I do not think we need BlobPromiseLoader to be an ActiveDOMObject.
It might be best to make Blob own the BlobPromiseLoader.

-- 
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/20200619/b5966b38/attachment.htm>


More information about the webkit-unassigned mailing list