On 11/5/13 1:16 AM, Fabrice Desré wrote:
I'm creating a download event with : let event = new this._window.DownloadEvent("downloadstarted", { download: createDOMDowloadObject(this._window, data) });where createDOMDownloadObject() returns a xpcom object implementing the webidl interface. However this fails with this error: [JavaScript Error: "'download' member of DownloadEventInit does not implement interface DOMDownload." {file: "jar:file:///system/b2g/omni.ja!/ components/DownloadsAPI.js" line: 62}]
Can I see what createDOMDowloadObject() does, exactly? Does it create it in the scope of this._window?
-Boris _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

