Re: dispatchEvent on svg node in firefox

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.svg
Message-ID <[email protected]>
Volker Gersabeck wrote:
> When using the first snippet on an HTML node, it works just fine in Firefox,

It does?  It doesn't over here, and I wouldn't expect it to.

And the reason I wouldn't expect it to is that 
nsGenericElement::CheckHandleEventForLinksPrecondition bails out if the 
event is not trusted (which this one is not).

In general, if you want to simulate user interaction you will need to do 
so in privileged code; normal web JS is not allowed to simulate various 
user events, for security reasons.

-Boris
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.