Hi Honza

Thank you so much for the info.

The report is here:
http://code.google.com/p/fbug/issues/detail?id=4007

As you probably see I ended up with a similar solution after diging in
the Net.js code, but I am not sure if it is officially supported.

Best regards,
Thomas

On Jan 31, 9:43 am, "Honza (Jan Odvarko)" <[email protected]> wrote:
> Yes, the Headers tab is the default one.
>
> One possibility is to utilize "initTabBody" event that is fired by
> Firebug.NetMonitor.NetInfoBody object and can be used to create
> additional tab. See a tutorial 
> here:http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug...
>
> After clicking on a request and expanding the body area, the Net panel
> executes following:
>
> // Notify listeners so additional tabs can be created.
> dispatch(NetInfoBody.fbListeners, "initTabBody", [netInfoBox, file]);
>
> // Select a default tab
> NetInfoBody.selectTabByName(netInfoBox, "Headers");
>
> This means that "Headers" tab is always selected regardless the
> selection can be already done by extension.
>
> http://code.google.com/p/fbug/source/browse/branches/firebug1.7/conte...
>
> So, the solution for now is to selected your tab in "initTabBody"
> using timeout so it's done after selecting the "Headers" tab.
>
> setTimeout(function() {
>     Firebug.NetMonitor.NetInfoBody.selectTabByName(infoBox,
> "Cookies");
>
> });
>
> The proper net panel code would be:
>
> // Notify listeners so additional tabs can be created.
> dispatch(NetInfoBody.fbListeners, "initTabBody", [netInfoBox, file]);
>
> // Select "Headers" by default if no other tab is selected already
> // (e.g. selected by third party Firebug extension in initTabBody)
> if (!netInfoBox.selectedTab)
>     NetInfoBody.selectTabByName(netInfoBox, "Headers");
>
> Please, create a new report 
> here:http://code.google.com/p/fbug/issues/list?start=0
> and I'll fix it!
>
> Honza
>
> On Jan 29, 10:54 am, tan <[email protected]> wrote:
>
> > When clicking on a row (request) in the Net tab, is it possible for
> > third party extension to eg. add a hook where I can tell which net tab
> > to display when the request is expanded?  Right now it seems like the
> > Headers tab is displayed by default.
>
> > Thanks in advance,
>
> > Best regards
> > Thomas

-- 
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