The NetFileLink object for Net panel selection is ready (R1637).

The use-cases are as follows:

// Selection by URL
context.chrome.select(new FBL.NetFileLink("http://...";));

// Selection by request object (in case there can be more requests
with the
// same URI in the Net panel).
context.chrome.select(new FBL.NetFileLink(null, request));

// Selection by file object (the object that is used to represent a
request
// in the Net panel).
context.chrome.select(file.getFileLink());

Honza


On Jan 6, 12:53 am, John J Barton <[email protected]> wrote:
> If you have an object that Firebug supports, then you can use:
>   context.chrome.select(object);
> In fact unless you know otherwise, this is a good place to start. At
> worst you will end up in the DOM tab with something you created but
> Firebug does not know about.
>
> For Script panel, create a SourceLink. These are the things you see in
> the Console when you have an error. Other things the script panel
> supports:
>  object instanceof jsdIStackFrame
>             || object instanceof SourceFile
>             || (object instanceof SourceLink && object.type == "js")
>             || typeof(object) == "function" )
>
> For Net panel I don't see any supportsObject. Looks like we need
> something like a NetFileLink(win, href), supported by Net panel. When
> the select() for that object comes to the net panel, it can lookup the
> NetDocument and NetFile objects and select them.  Hopefully Honza will
> read this and weigh in...
>
> John.
>
> On Jan 5, 2:33 pm, Manoj <[email protected]> wrote:
>
> > One of the UI features of the Firebug extension I'm developing would
> > be to allow the user to readily switch to Firebug's Net or Script
> > panel when they double click on the appropriate network or JS function
> > trace item.
>
> > Is there an API that can be used for accomplishing this?
>
> > For e.g. From my extension, given the request URI, how can the
> > appropriate request details be highlighted in the Net panel. (assuming
> > the Network monitoring is enabled)
>
> > Similarly, given a filename and line number, how can the appropriate
> > file be displayed in the Script panel.
>
> > Regards,
> > Manoj
>
>
--~--~---------~--~----~------------~-------~--~----~
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