Nathan, panel data is per web page (tab). Each web page has a Firebug 'context', each panel has a different data set for each context. So your questions don't make sense, see below:
On Dec 21, 8:59 am, "Nathan Mische" <[email protected]> wrote: > I've been looking at the Firebug code and I'm not sure this is > possible, but I thought I'd ask here. > > Is there any way to tell if a panel is being initialized in a new tab? Panels are initialized when Firebug starts (or on demand, but not per page). A context is initialized a three different points, initContext (no data yet), loadedContext( load event arrived), showContext (firebug is shown to user). Beware that showContext can precede loadContext. The image under "Study the HTML for the panel" on http://getfirebug.com/chromebug/usingChromebug/t1/index.html shows the HTML for the panels. You can see multiple panels and contexts. Firebug just actives the right one as you navigate Firebug panels or Firefox tabs. > I have some panel state information that I would like to clear out > when the panel is opened in a new tab. If the page is opened then the context is initialized and the panel is empty. Nothing to clear out. You can use destroyContext module event to clear the corresponding panel info or save some state. > I do not want to clear out the > panel state if the panel is initialized in the same tab. This does not make sense because the tabs are not connected to anything other than the tab bar. So a panel is not initialized with a tab. When you load a new page, or navigate within a site from page to page, the window inside the tab is deleted, gone, not around. Then a new window arrives, fills with the new content, and sits in the tab. There is no "same tab". The destroyContext/initContext pair have persistentState you can use to store info by URL. Or at least this is how I understand it. > > 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 -~----------~----~----~----~------~----~------~--~---
