In general Firebug extensions should attach info to the 'context',  eg
context.Trevan.foo = "bar".  That way you don't have to deal with
clean up.

Firebug puts a little data on the browser, for example,
browser.showFirebug
marks each browser that Firebug is open on.

More generally I think you want to wait for Firebug to tell you about
windows via shouldCreateContext. There are functions in TabWatcher and
Firebug that have more info about the relationship between Firebug and
the tabs.

jjb

On Jun 26, 4:10 pm, Trevan Richins <[email protected]> wrote:
> Is there any reason against adding an expando to the browser object?  I'm 
> thinking of adding a value to indicate if firebug is opened or closed for the 
> tab.  I've already tested if I can and if it is distinct between tabs.
>
> Trevan
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of 
> johnjbarton
> Sent: Thursday, June 25, 2009 2:01 PM
> To: Firebug
> Subject: Re: Help with extension to enable Firebug at a specific domain
>
> https://developer.mozilla.org/En/XUL/Browser
>
> As far as firebug is concerned, 'browser' *is* the tab.
>
> jjb
>
> On Jun 25, 12:16 pm, Trevan Richins <[email protected]> wrote:
> > I've got watchBrowser and unwatchBrowser, and I'm wondering what the 
> > "browser" parameter has available.  Is there any documentation on functions 
> > or variables on it?  I'm curious if it tells me which tab firebug was 
> > opened on.
>
> > But as for my user experience, it is actually pretty nice.  I've got it to 
> > turn on minimized when ever in my dev domain, and then when I open it, it 
> > stays open until I close it.  I haven't tried detached mode, but I rarely 
> > use that functionality.  One issue I've seen is that when I leave my domain 
> > and then try to open firebug, it goes minimized first.  But I think I know 
> > how to get around that issue.
>
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]] On Behalf 
> > Of johnjbarton
> > Sent: Wednesday, June 24, 2009 10:31 AM
> > To: Firebug
> > Subject: Re: Help with extension to enable Firebug at a specific domain
>
> > I think all you have to do is implement
> >     watchBrowser: function(browser)  // Firebug is opened in browser
> > in your URLSelector and call
> >   Firebug.minimizeBar();
>
> > Let us know what your experience is like. I'd like to persist the
> > placement value across Firefox sessions, but the main unknown is about
> > the user experience. If you press F12 and the placement is "mimized"
> > then essential nothing seems to happen.  Will users understand that
> > the Firebug has been activated minimized?
>
> > jjb
>
> > On Jun 24, 9:00 am, Trevan Richins <[email protected]> wrote:
> > > I've written a small extension that enables Firebug on my development 
> > > domain.  I've created my own object that has a shouldCreateContext() and 
> > > a shouldShowContext() function and hooked it into the TabWatcher.  It 
> > > seems to be working pretty much correctly (seeing issues where it doesn't 
> > > open but haven't been able to duplicate it consistently) but it is 
> > > bugging me that it opens completely up.  Is there a way that I could tell 
> > > it to turn on, but not to open?  Basically, turn it on in minimized form.
>
> > > Trevan
>
> > > [cid:[email protected]]
> > > Trevan Richins
> > > Software Enginner
> > > [email protected]<mailto:[email protected]>
> > > 801.722.7000 x 1417 tel
> > > 801.722.7001 fax
>
> > > [cid:[email protected]]
> > > 550 East Timpanogos Circle
> > > Orem, UT 84097www.omniture.com<http://www.omniture.com/>
>
> > >  image003.gif
> > > < 1KViewDownload
>
> > >  image004.gif
> > > 1KViewDownload
>
> > >  image005.png
> > > < 1KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to