Bug 1244987: Make nsFilePickerProxy create DOM file objects with the inner window. r=baku

This commit is contained in:
Kyle Huey 2016-02-02 10:02:26 -08:00
parent 8c043a20b7
commit ca7c45386e

View File

@ -156,7 +156,9 @@ nsFilePickerProxy::Recv__delete__(const MaybeInputFiles& aFiles,
return true;
}
RefPtr<File> file = File::Create(mParent, blobImpl);
nsPIDOMWindowInner* inner =
mParent ? mParent->GetCurrentInnerWindow() : nullptr;
RefPtr<File> file = File::Create(inner, blobImpl);
MOZ_ASSERT(file);
mFilesOrDirectories.AppendElement(file);