Bug 1080709 - Use nsIDOMWindowUtils::wrapDOMFile() in Android file picker

This commit is contained in:
James Willcox 2014-10-27 14:10:59 -05:00
parent a4cdeccb89
commit 55e1d49f7d

View File

@ -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);