Closed Bug 1397810 Opened 3 years ago Closed 3 years ago

FileReaderSync should not use ::Available() to know the size of the stream

Categories

(Core :: DOM: File, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

Attachments

(1 file)

BlobImpl::GetSize() should be used, instead.
Attachment #8905575 - Flags: review?(bugs)
Attachment #8905575 - Flags: review?(bugs) → review+
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5f7438b737c0
FileReaderSync should use Blob::GetSize() to known the size of the stream and not stream::Available(), r=smaug
https://hg.mozilla.org/mozilla-central/rev/5f7438b737c0
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Blocks: 1398733
You need to log in before you can comment on or make changes to this bug.