Bug 1443954 - Part 3: Add support for RefCounted types to IPDL, r=bz,froydnj,baku
This patch was reviewed in parts, however the intermediate states would not build: Bug 1443954 - Part 3A: Strip pointers from the argument to WriteParam and WriteIPDLParam before selecting the ParamTraits impl, r=froydnj Bug 1443954 - Part 3B: Move nsIAlertNotification serialization to the refcounted system, r=bz Bug 1443954 - Part 3C: Move geolocation serialization to the refcounted system, r=bz Bug 1443954 - Part 3D: Move nsIInputStream serialization to the refcounted system, r=baku Bug 1443954 - Part 3E: Move BlobImpl serialization to the refcounted system, r=baku Bug 1443954 - Part 3F: Correctly implement ParamTraits for actors after the ParamTraits changes, r=froydnj
This commit is contained in:
@@ -6514,13 +6514,13 @@ RestoreFileContentData(nsPIDOMWindowInner* aWindow,
|
||||
{
|
||||
nsTArray<OwningFileOrDirectory> res(aData.Length());
|
||||
for (auto& it : aData) {
|
||||
if (it.type() == FileContentData::TBlobImplPtr) {
|
||||
if (!it.get_BlobImplPtr()) {
|
||||
if (it.type() == FileContentData::TBlobImpl) {
|
||||
if (!it.get_BlobImpl()) {
|
||||
// Serialization failed, skip this file.
|
||||
continue;
|
||||
}
|
||||
|
||||
RefPtr<File> file = File::Create(aWindow, it.get_BlobImplPtr());
|
||||
RefPtr<File> file = File::Create(aWindow, it.get_BlobImpl());
|
||||
MOZ_ASSERT(file);
|
||||
|
||||
OwningFileOrDirectory* element = res.AppendElement();
|
||||
|
||||
Reference in New Issue
Block a user