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