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 really need to call nsIDOMCSSStyleSheet.getCssRules(). What would > you recommend me to do? Honestly, I have no idea. You could write a shim to call the C++-only APIs on nsICSSStyleSheet. You could remove the security check locally, if you can prove this is safe. You could get JavaXPCOM fixed to make non-scriptable but IDL-declared APIs available to Java code and then just expose a noscript getter that doesn't do the security check... Which of those is the way to go really depends on your situation. I'm a little sorry that the JavaXPCOM stuff is not very well supported, but that's life. -Boris