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 window creation for things being added, I guess, and pagehide for things being removed. But going from a pagehide event to "what is being removed?" is not trivial..

To observe changes in windows, I add a load and unload event on the
chromeEventHandler of the top level content docshell like [1].

Yeah, that won't work. pageshow/pagehide would at least fire consistently, but they represent _pages_, not docshells.

-Boris
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to