Den onsdag 27 januari 2016 kl. 13:08:51 UTC+1 skrev als: > > > > On Tuesday, 26 January 2016 19:03:26 UTC+11, Simon Lindholm wrote: >> >> Yep, Firebug simply uses the standard APIs but within a more privileged >> context. (It's not a separate process, even with e10s - it's a >> chrome-privileged compartment living in the same process as the web page. >> Ok, well, with e10s one might use CPOW wrappers, but that's mostly >> deprecated and a digression.) All accesses go through Xray wrappers, which >> is part of what makes that work. >> https://developer.mozilla.org/en-US/docs/Mozilla/Gecko/Script_security >> >> > > I've experimented with doing this from a frame script. According to the > Mozilla documentation the frame script has "system principals" which > appears to mean the same as chrome-privilege but I still got a > SecurityError from the cross-domain access. > > Where/how is the Firebug chrome-privileged compartment created? >
It works for me from a frame script, so you're probably just doing something wrong. I don't have any spontaneous guesses as to what, though. -- 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/40c3a3b4-7bdd-4896-8b0d-d135353ff4fb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
