Implement `bytes()` method on Blob for reading bytes into a Uint8Array
Categories
(Core :: DOM: File, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox128 | --- | fixed |
People
(Reporter: bakkot, Assigned: evilpies)
References
()
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
Steps to reproduce:
See https://github.com/w3c/FileAPI/pull/197. This is like the existing arrayBuffer()
method (implemented in https://bugzilla.mozilla.org/show_bug.cgi?id=1557121), but gives you a Uint8Array instead.
Tests at https://github.com/web-platform-tests/wpt/pull/46232
See also https://bugzilla.mozilla.org/show_bug.cgi?id=1896475.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Comment 1•1 year ago
|
||
Does this really "depend on" bug 1896475?
Comment 2•1 year ago
|
||
I guess yes given the dependency on BodyUtils. I guess this then would be as easy as adding a method with ConsumeBody(ConsumeType::Bytes)
?
Assignee | ||
Comment 3•1 year ago
|
||
Yes exactly, it depends on BodyConsumer
. Maybe 5 lines of code. However I am currently waiting for the WPT merge to happen.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
Kagami can we signal support on the PR?
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
Assignee | ||
Updated•1 year ago
|
Comment 7•1 year ago
|
||
bugherder |
Comment 8•11 months ago
|
||
FF128 MDN docs work for this can be track in https://github.com/mdn/content/issues/33991
Description
•