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-customize-net-panel-part-vii/

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/content/firebug/net.js#2077


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