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