Re: dispatchEvent on svg node in firefox
"Volker Gersabeck" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
well, in my case, with html it works. In addition, in Safari and Opera it works as well, both with html and svg. Just with svg in Firefox it doesn't work. what I might add to the description of my problem: the xhtml + svg is contained within an iFrame and the Javascript runs in the context of the outer file (the one that contains the iFrame). But i'm not sure, whether this makes my code privileged. Btw: could you please write a sentence about what privileged code is, or just point me to a page with some explanations? That would be great. On Thu, Dec 11, 2008 at 6:45 PM, Boris Zbarsky <[email protected]> wrote: > 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 > _______________________________________________ > dev-tech-svg mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-svg >