mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1080709 - Use nsIDOMWindowUtils::wrapDOMFile() in Android file picker
This commit is contained in:
parent
a4cdeccb89
commit
55e1d49f7d
@ -157,7 +157,8 @@ FilePicker.prototype = {
|
||||
let win = this._domWin;
|
||||
return this.getEnumerator([this.file], function(file) {
|
||||
if (win) {
|
||||
return new win.File(file);
|
||||
let utils = win.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
|
||||
return utils.wrapDOMFile(file);
|
||||
}
|
||||
|
||||
return new File(file);
|
||||
|
Loading…
Reference in New Issue
Block a user