Niky Williams wrote:
Okay, I'm trying to dispatch a focus event to an input element.

Accessing DOM nodes from off the main thread is not ok. If you're using a debug build you'll see all sorts of beautiful assertions when you do this.

 I've read some things on nsProxy and the nsIThread...but
can't seem to put it together on how to post this event to the main thread. Can someone point me in the correct direction please? Thanks in advance!

See the code at
http://lxr.mozilla.org/seamonkey/source/directory/xpcom/base/src/nsLDAPChannel.cpp#107 for an example of creating a proxy object.

-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to