Strange behavior in synthesized mouse clicks with Gecko 2

Babele Dunnit <[email protected]>
Newsgroups gmane.comp.mozilla.devel.embedding
Organization http://groups.google.com
Message-ID <74743fa9-83fd-47d8-9225-403452627b75@e35g2000vbl.googlegroups.com>
Hi All,

restarting from http://groups.google.com/group/mozilla.dev.embedding/browse_thread/thread/3365ae6b01066bc3#
, I am trying to embed Gecko 2, i.e. Firefox 4 Beta 1. I am on Fedora
12. But I am having a little trouble:

I am synthesizing mouse clicks, and I am using a code like this:

windowUtils->SendMouseEvent(NS_LITERAL_STRING("mousemove"), cp.x,
cp.y, 0, 0, 0, true);
windowUtils->SendMouseEvent(NS_LITERAL_STRING("mousedown"), cp.x,
cp.y, 0, 1, 0, true);
windowUtils->SendMouseEvent(NS_LITERAL_STRING("mouseup"), cp.x, cp.y,
0, 1, 0, true);

it works like a charm with Gecko 1.9, up to the XulRunner runtime
built from Firefox 3.6.8 sources. But when using Gecko 2, when I
synthesize a click on a link, it does not work - I mean, no
OnLocationChange etc. Strange, because I can see that something
happens - for example, the clicked object gets the focus, gets some
activation behavior, but - even on a very simple <A> node - the
navigation is not fired.

Am I missing something? Just a bug that will be fixed and I just have
to sit back and relax? Or something changed in Gecko 2?

Thanks,
Aaron
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.