Re: webidl events and JS implementations

2013-11-05 Thread Boris Zbarsky
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 webid

Re: webidl events and JS implementations

2013-11-05 Thread Bobby Holley
I think you want yourPrivateObject.__DOM_IMPL__, which gives you the binding object as seen by client script. bholley On Tue, Nov 5, 2013 at 7:16 AM, Fabrice Desré wrote: > In the download api we are working on for b2g, a download event in webidl > looks like: > > [Constructor(DOMString type,

webidl events and JS implementations

2013-11-04 Thread Fabrice Desré
In the download api we are working on for b2g, a download event in webidl looks like: [Constructor(DOMString type, optional DownloadEventInit eventInitDict)] interface DownloadEvent : Event { readonly attribute DOMDownload? download; }; dictionary DownloadEventInit : EventInit { DOMDownload