On Jul 30, 8:47 am, Andrew R <[email protected]> wrote:
> In regards to firebug 1.4, Firebug passes a state object to the panel
> show, hide and destroy. I have been looking into the code, but I don't
> have a good handle on the implications of this state object.
>
> 1) What does it apply to?

Well the higher level answer here is "Firebug 1.5".  It does exist in
1.4 and it is used, but that is the end of what I would say about 1.4.

> a) the current panel

No, it applies between the end of the current panel and the start of
the next panel of the same type and page URL after a reload.

> b) the current window object in the current tab

No.

> c) the current tab

Firefox tab? No. Firebug Tab? see "a"

> d) the browser chrome

no.

> e) saved/serialized  to the firefox preferences

no

> f) saved elsewhere

well that would have to be yes then ;-)

> 2) What is its lifetime?
> a) for the life of one web page

no

> b) life of a tab

no
> c) permanent/profile

no

> d) the tab until firebug is "turned off" / suspended

no.

>
> I want to avoid trying to save too much data that would linger longer
> than I like so I want to make sure I understand. I would appreciate
> any insight on this.

First just be certain, the "context" object is the metadata for a
Firefox browser tab aka web page. Its lifetime coincides with the
lifetime of the parent Firefox nsIDOMWindow, the thing inside the
browser tab.

The persistent state is only for reloading web pages. It is set on
'destroy' and used on 'initialize'. Its entire purpose is to allow
state to persist across browser reload.Search for "persist" on the
Firebug 1.5 branch and you will see how it is used to implement the
Persist button in the Console for 1.5.

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