Hello Boris I can find a header nsIPrivateDOMEvenmt.h but not a nsIprivateDOMEvent.idl.
-----Original Message----- From: dev-embedding-bounces+walter.fettich=lasting...@lists.mozilla.org [mailto:dev-embedding-bounces+walter.fettich=lasting...@lists.mozilla.org] On Behalf Of Boris Zbarsky Sent: Thursday, January 22, 2009 5:32 AM To: [email protected] Subject: Re: Why can't I send my custom event? Walter Fettich wrote: > initEvent works fine. It is dispatchEvent that is causing the trouble. > I tried to send the event from Javascript and from C++ and I get the > same result 0x80070057 meaning NS_ERROR_ILLEGAL_VALUE as an exception > in JS and return code from dispatchEvent in C++. Ah, ok. Does your class just implement nsIDOMEvent? Or does it also implement nsIPrivateDOMEvent? The latter is required for correct event dispatch. -Boris _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
