The main code for this is located within the Css.getAllStyleSheets() 
function 
<https://github.com/firebug/firebug/blob/305f4912b6a476bfc2ab1b7c174d826892b1863a/extension/content/firebug/lib/css.js#L790-L834>
.
It also accesses the rules this way, though IIRC from within the chrome 
process, which has more privileges. Simon, please correct me if I'm wrong.

Sebastian

On Sunday, January 24, 2016 at 10:34:26 PM UTC+1, als wrote:
>
> If I wrote a FF add-on I would find that a content script can't access 
> style sheets from cross domains.
> Accessing the sheet.cssRules attribute would produce a SecurityError. But 
> Firebug
> shows me all of the style sheets. How is it able to do this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/firebug.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/firebug/f6ee3577-4e75-4472-b4f1-5cd93658d717%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to