Re: Error: nsIDOMCSSStyleSheet.getCssRules() from xulrunner in designmode
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
[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