On Oct 1, 1:14 pm, Andrew R <[email protected]> wrote:
> I need to inject my own JS functionality into the page in an extension
> that I extend Firebug. I have been mimicing what firebug does with the
> console injection, but I found a bug in my own code.
>
> Is there a good way to tap into what firebug does and extend it so I
> can add my own callback methods and possibly inject my own javascript
> into the page using Firebug APIs instead of my own custom ones?
The short answer is no good way. The current solution is a (secure)
gigantic hack.
If you ask mozilla folks they will say evalInSandbox() the right way
to do this. Except that no one understands what it does.
If you want to inject JS, that part is easy. If you want to send
results back from a page into firebug, that is hard.
I guess we could add a console.sendJSON(panelName, json) that would
call panel.onPageJSON(json).
jjb
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---