Re: Error: nsIDOMCSSStyleSheet.getCssRules() from xulrunner in designmode
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
On Apr 6, 7:25 pm, Boris Zbarsky <[email protected]> wrote: > [email protected] wrote: > > I am working on an Editor based on xulrunner 1.9.0.5(running as a > > Eclipse plugin) from javaxpcom to create an Eclipse Plugin. > > I can get hold of a nsIDOMCSSRule (from e.g. inIDOMUtils and a > > nsIDOMNode) and manipulate the Css, but I cannot find a way to get a > > nsIDOMCSSRuleList to manipulate a nsIDOMCSSRule directly. I understand > > there is a javascript security issue, but in "designmode" javascript > > seems to disabled anyway. > > Doesn't matter; script outside the designmode document can call into > these APIs. > > Your real problem, as far as I can tell, is that JavaXPCOM only exposes > scriptable APIs, which means you have all the same security restrictions > as web content. > > -Boris Thanks for your help. I am not really familiar with the xulrunner code, but would it make sense for me to simply comment out the securtiy problem and built xulrunner for my purpose, or should I file a Bug report instead? Can Javascript still run when the whole document is designmode? Andreas