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, 10:54 pm, Boris Zbarsky <[email protected]> wrote: > [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 Thanks a lot. I will see what happens. It is just such an essential api call. Andreas