Closed Bug 1633731 Opened 5 years ago Closed 5 years ago

Avoid cloning IPCBlobInputStream when not needed

Categories

(Core :: DOM: File, task)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: baku, Assigned: baku)

Details

Attachments

(1 file)

https://searchfox.org/mozilla-central/rev/158bac3df3a1890da55bdb6ffdaf9a7ffc0bfb0a/dom/file/ipc/IPCBlobInputStreamParent.cpp#193-198

At the moment IPCBlobInputStreamParent::HasValidStream() retrieves the stream entirely just to check if the stream ID is valid. We can avoid it.

Assignee: nobody → amarchesini
Status: NEW → ASSIGNED
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5a1798f08493 Avoid cloning IPCBlobInputStream objects when not needed, r=asuth
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: