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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 19 02:11:13 PDT 2020


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

--- Comment #8 from youenn fablet <youennf at gmail.com> ---
> text/arrayBuffer/ReadableStream is marked as `[NewObject]` in IDL.

For text and arrayBuffer, this is the promise that is new, and this is already handled by the binding generator.

Given the algorithm though, you are correct that text and arrayBuffer will be also brand new object. For ReadableStream, a new one needs to be created indeed.

> If we make Blob owns the BlobPromiseLoader, we need to hold multiple
> `DeferredPromise` or `BlobPromiseLoader` in Blob by vector or map, right?


Right, this could be a HashSet.

Thinking a bit more, BlobLoader in BlobLoader.h might be the one you actually want to use.
It could be easily extended to support String, and could be probably extended to ReadableStream as well.

-- 
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/5acd84db/attachment.htm>


More information about the webkit-unassigned mailing list