Re: What is the best way to keep track of all the window objects in a content window?

2012-09-28 Thread Dave Townsend
On 09/28/12 11:08, Paul Rouget wrote: In the Developer Tools, we often need to get a list of all the windows present in a page. (main window, iframes, iframes in iframes, …). We also need to be notified when a new window is created (createElement("iframe")). The naive way to do it: - recursivel

Re: What is the best way to keep track of all the window objects in a content window?

2012-09-28 Thread Paul Rouget
Paul Rouget wrote: > In the Developer Tools, we often need to get a list of all the windows present > in a page. (main window, iframes, iframes in iframes, …). > We also need to be notified when a new window is created > (createElement("iframe")). > > The naive way to do it: > - recursively go th

What is the best way to keep track of all the window objects in a content window?

2012-09-28 Thread Paul Rouget
In the Developer Tools, we often need to get a list of all the windows present in a page. (main window, iframes, iframes in iframes, …). We also need to be notified when a new window is created (createElement("iframe")). The naive way to do it: - recursively go throught the iframes via the DOM -