Closed Bug 1557121 Opened 5 years ago Closed 5 years ago

Implement Blob.text()/Blob.arrayBuffer()/Blob.stream()

Categories

(Core :: DOM: File, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
relnote-firefox --- -
firefox69 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

(Keywords: dev-doc-complete)

Attachments

(7 files)

These 3 methods are new in the spec. Chrome is going to ship them (they already pass WPT tests). Would be nice to ship them too.

Bugbug thinks this bug is a enhancement, but please change it back in case of error.

Type: defect → enhancement
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b83fb79138d7
Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 1 - Rename FetchStream to BodyStream, r=smaug
https://hg.mozilla.org/integration/autoland/rev/c96028ee8aa4
Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 2 - FetchBodyConsumer doesn't need to be a template class, r=smaug
https://hg.mozilla.org/integration/autoland/rev/0a49beaf7f21
Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 3 - Rename FetchBodyConsumer to BodyConsumer, r=smaug
https://hg.mozilla.org/integration/autoland/rev/28eb82bc47f7
Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 4 - blob.text()/blob.arrayBuffer(), r=smaug
https://hg.mozilla.org/integration/autoland/rev/318564bd3614
Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 5 - blob.stream(), r=smaug
https://hg.mozilla.org/integration/autoland/rev/b7387f0cad9f
Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 6 - tests, r=smaug
https://hg.mozilla.org/integration/autoland/rev/4f5df7ee7541
Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 7 - WPT, r=smaug

:baku,
Do you think this is notable in the release note? If so, care to nominate is? Thank you.

Flags: needinfo?(amarchesini)

Release Note Request (optional, but appreciated)
[Why is this notable]: It's an important change in the FileAPI and in how to read data from Blob objects.
[Affects Firefox for Android]: no
[Suggested wording]: Blob.text(), Blob.arrayBuffer(), Blob.stream() are 3 new methods to read data from a Blob object.
[Links (documentation, blog post, etc)]: https://w3c.github.io/FileAPI/#dom-blob-stream https://w3c.github.io/FileAPI/#dom-blob-text https://w3c.github.io/FileAPI/#dom-blob-arraybuffer

relnote-firefox: --- → ?
Flags: needinfo?(amarchesini)

That change seems of interest to web developers not the general firefox userbase, so I guess more suitable for MDN than the main release notes?

Andrea, can you clarify if you want this mentioned in both our developer's notes (MDN page) and our general notes on www.mozilla.org or only on our developer's notes? Thanks

Flags: needinfo?(amarchesini)

(In reply to Pascal Chevrel:pascalc from comment #15)

Andrea, can you clarify if you want this mentioned in both our developer's notes (MDN page) and our general notes on www.mozilla.org or only on our developer's notes? Thanks

This is for web developers only. Thank you.

Flags: needinfo?(amarchesini)

Thanks, the dev-doc-needed keyword is enough then.

Documentation has been updated:

Regressions: 1577311
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: