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 track when a new docshell (or the corresponding window) is created
and removed.

In these events, I also want to include the following scenarios:

    - Docshell/Window loaded from BFCache should emit "created" event.
    - Docshell does not changes, but the window location change, like while
    navigating from about:home to any other site should emit corresponding
    "removed" and then "created" for the new window.
    - Docshell/Window which is cached into BFCache should emit "removed"
    event.

Thanks.


Combination of content-document-global-created, chrome-document-global-created 
and
dom-window-destroyed notifications and pageshow and pagehide listeners should 
work in this
case.



-Olli




On Wed, Feb 12, 2014 at 9:28 PM, Boris Zbarsky <bzbar...@mit.edu> wrote:

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.mozilla.org/listinfo/dev-platform





_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to