Re: getCssRules() on nsIDOMCSSStyleSheet fail

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
[email protected] wrote:
> So it sounds like I have only two options. One is to move my CSS
> manipulating function to JavaScript and make it a service to be called
> from Java XPCOM. The second option is to code a security set up (where
> I push a context) in C++ and make it a XPCOM object for used in my
> code. Is this correct? Thanks.

I believe this is, sadly, correct.  :(

> I just have another thought. If I disabled JavaScript and revert the
> subject principal code back then I should be fine with the random
> failure problem?

If you're guaranteed that there is never any JavaScript running in your 
app, then yes.

> I am not sure which code this random failure
> originate from.

Any time untrusted JS happens to be on the stack, basically, its 
permissions would be used for the security check.

-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.