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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.