Hi,

I'm working on a Firebug extension which watches for certain sorts of
outbound requests and does things with them (mainly parsing and
displaying details in a panel).

I've run into a similar problem that's been reported here several
times -- basically, I need a persistent storage area, per Firefox tab,
where I can store a little data (short term).  The use case is like
this:

1) Load a page
2) Click a link; that link has a javascript handler which generates an
image request, before the browser follows the link
3) Browser follows the link and loads the new page

I need to capture the details of that image request described in #2,
and display it in the panel after #3.

Currently, I do this by storing the requests in an array on my module
(extended from Firebug.Module), then in loadedContext() I dump the
contents of the list to the panel.  However, it becomes a problem when
a new tab gets opened (or if you have multiple tabs open).  Since that
list on the module is "global" (e.g. not tied to a particular tab),
the first time any tab's loadedContext() runs, it will process all the
entries.

So, my question is if there's any place to store this information,
persistent across page loads, that's specific to the current tab.
Failing that, do you have any thoughts on a different approach that
would achieve the same result?


Thanks in advance,
Ross



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