For the CSS panel we simply use the standard method of
`document.styleSheets` - since Firebug runs with higher ("chrome") JS
privileges, this doesn't run up against same origin restrictions. (The
"Source Edit" feature is more weird; there we use some internal API for
capturing data from requests ("nsIChannel"s), so we are able to present the
original source. It relates to Net panel code, which I don't know a lot
about.)
Den måndagen den 21:e oktober 2013 kl. 18:23:31 UTC+2 skrev Georgiy Ivankin:
>
> Just a quick question to those knowing the internals: how does Firebug
> parses / edits stylesheets loaded from another domain? This is not allowed
> by the browser, so some workaround is probably used. I'd love to know how
> it's done: via some FF extensions API methods or elsewise?
>
> Any tip is appreciated, be it a detailed explanation or a link to a method
> / module is source code.
> Thanks!
>
--
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 http://groups.google.com/group/firebug.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebug/ff1f1463-8e1c-4582-8dbd-89e8dc4dd983%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.