Re: Tracking Docshells

2014-02-13 Thread smaug
On 02/13/2014 12:53 PM, Girish Sharma wrote: Thank you everyone for your inputs. Since there is no current method of precisely tracking window creation and removal, how should I proceed and add such functionality ? What I basically want is that despite of BFCache or anything, I should be able to

Re: Tracking Docshells

2014-02-13 Thread Girish Sharma
Thank you everyone for your inputs. Since there is no current method of precisely tracking window creation and removal, how should I proceed and add such functionality ? What I basically want is that despite of BFCache or anything, I should be able to track when a new docshell (or the correspondin

Re: Tracking Docshells

2014-02-12 Thread Boris Zbarsky
On 2/12/14 10:23 AM, Girish Sharma wrote: I am wondering, is this why "google.co.in" also not emit an unload event on the chrome vent event handler ? Most likely, yes. -Boris ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists

Re: Tracking Docshells

2014-02-12 Thread Girish Sharma
On Wed, Feb 12, 2014 at 8:22 PM, Boris Zbarsky wrote: > On 2/12/14 9:44 AM, Gijs Kruitbosch wrote: > >> Dumb question: Could you listen for dom-window-destroyed >> > > You could, but if the window gets bfcached that gets delayed somewhat > indefinitely, no? > > I am wondering, is this why "google

Re: Tracking Docshells

2014-02-12 Thread Boris Zbarsky
On 2/12/14 9:44 AM, Gijs Kruitbosch wrote: Dumb question: Could you listen for dom-window-destroyed You could, but if the window gets bfcached that gets delayed somewhat indefinitely, no? -Boris ___ dev-platform mailing list dev-platform@lists.mozi

Re: Tracking Docshells

2014-02-12 Thread Girish Sharma
On Wed, Feb 12, 2014 at 8:14 PM, Gijs Kruitbosch wrote: > On 12/02/2014 14:30, Boris Zbarsky wrote: > >> On 2/12/14 8:44 AM, Girish Sharma wrote: >> >>> I want to track the creation and removal of docshells from a top level >>> content docshell. Is it possible ? >>> >> >> There are no built-in fac

Re: Tracking Docshells

2014-02-12 Thread Gijs Kruitbosch
On 12/02/2014 14:30, Boris Zbarsky wrote: On 2/12/14 8:44 AM, Girish Sharma wrote: I want to track the creation and removal of docshells from a top level content docshell. Is it possible ? There are no built-in facilities for this right now, as far as I can tell. You could simply add somethin

Re: Tracking Docshells

2014-02-12 Thread Boris Zbarsky
On 2/12/14 8:44 AM, Girish Sharma wrote: I want to track the creation and removal of docshells from a top level content docshell. Is it possible ? There are no built-in facilities for this right now, as far as I can tell. You could simply add something One option would be to watch windo

Tracking Docshells

2014-02-12 Thread Girish Sharma
Hi, I want to track the creation and removal of docshells from a top level content docshell. Is it possible ? *TLDR;* I am working on the backend of a Storage Inspector devtool to be able to inspect storages like cookies, local storage etc. For this, I want to get a list of all the inner windows