Closed Bug 1358109 Opened 7 years ago Closed 7 years ago

Use IPCBlob in PFilePicker

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

Attachments

(1 file)

      No description provided.
Blocks: 1353629
Assignee: nobody → amarchesini
This bug is part of the PBlob refactoring.
Attachment #8860003 - Flags: review?(bugs)
Comment on attachment 8860003 [details] [diff] [review]
ipcBlob_12_PFilePicker.patch

>   for (unsigned i = 0; i < aData.Length(); i++) {
>+    IPCBlob ipcBlob;
>+
>     MOZ_ASSERT(aData[i].mType == BlobImplOrString::eBlobImpl);
>-    BlobParent* blobParent = parent->GetOrCreateActorForBlobImpl(aData[i].mBlobImpl);
>-    if (blobParent) {
>-      blobs.AppendElement(blobParent);
>+    nsresult rv = IPCBlobUtils::Serialize(aData[i].mBlobImpl, parent, ipcBlob);
>+    if (NS_WARN_IF(NS_FAILED(rv))) {
>+      break;
>     }
>+
>+    ipcBlobs.AppendElement(Move(ipcBlob));
Does IPCBlob have move ctor? Seems like not, so why use Move? It just makes one to think something is being moved here.
Attachment #8860003 - Flags: review?(bugs) → review+
Flags: needinfo?(amarchesini)
https://hg.mozilla.org/mozilla-central/rev/4de83aa3b817
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Depends on: 1361748
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: