mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1244987: Make nsFilePickerProxy create DOM file objects with the inner window. r=baku
This commit is contained in:
parent
8c043a20b7
commit
ca7c45386e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user