Thanks Honza, that's doing what I needed. --Nathan
On Fri, Jan 9, 2009 at 10:26 AM, Jan Odvarko <[email protected]> wrote: > > You can do the following: > > watchWindow: function(context, win) > { > win.wrappedJSObject._coldfireForceDebug = true; > }, > > (defined in your module object) > > Honza > > On Jan 9, 4:10 pm, Nathan Mische <[email protected]> wrote: >> Hi, >> >> I'm trying to figure out how to inject a variable into the context >> window. Basically I want to make the page I'm viewing aware of an >> extension preference. Really just set window._coldfireForceDebug = >> true if my extension's forceDebug preference is enabled. >> >> I've tried using the addScript function from lib.js, as well as >> Firebug.CommanLine.evaluate() and Firebug.Debugger.evaluate() in my >> module's initContext method, but I don't seem to be getting anywhere. >> Does anyone have any pointers as to how this may be done? Or if it can >> be done at all? >> >> Thanks, >> >> --Nathan > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
