Hello Fabrice, Julien,

Thank you for your kindness!
What I'd like to know was simply,
to add an original event for our original IDL on Gecko.
The type of the event should be nsIDOMEventListener.

Could you tell us if you have an idea?
Any help will be appreciated.

Tsuneyuki ITO

(2013/02/23 1:43), Fabrice Desre wrote:
On 02/22/2013 02:35 AM, Julien Wajsberg wrote:
Le 22/02/2013 09:47, Tsuneyuki Ito a écrit :
Hello,

I'd like to add a new Event on Gecko to notify the Gaia Apps through
nsIDOMEventListener, such "oninstall" or "onuninstall" on mozApps.mgmt.
Could you give us any hints for following items to implement?

Actually, the oninstall/onuninstall events on mgmt are not using the
usual event listener mechanism. This is planned to change though.

I recently did an implementation of "addEventListener", "dispatchEvent"
and "removeEventListener" in [1], this worked well with eg jQuery, and
tried to follow the spec [2], but I don't know if that is enough for our
JS Modules.

It was decided to *not* reimplement EventTarget in chrome side JS
because it's not really possible to do it properly. All the content-side
JS shims are not really spec compliant either for the same reasons. See
the juicy bits in https://bugzilla.mozilla.org/show_bug.cgi?id=731746

        Fabrice


--
KDDI Technology
Tsuneyuki ITO
+81-90-9314-3849 [email protected]
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to