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 throught the iframes via the DOM > - add mutations observers to be notified when an iframe is created > > Is there a better way to do that?
I found what I was looking for: https://developer.mozilla.org/en-US/docs/Observer_Notifications#Documents (Thanks Mossop) -- Paul _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform