[EMAIL PROTECTED] wrote:
> Can you please tell me if there is 1 nsIDOMWindowInternal for the html
> document and
> then 1 nsIDOMWindowInternal for each frame/iframe inside that html
> document?

No.  There are two: the inner and outer.

> If yes, can you please tell me how can I get the nsIDOMWindowInternal
> of each iframes when I am given a nsIDOMWindowInternal of the html
> document?

QI to nsIDOMWindow and GetFrames().  That will give you a collection of outer 
windows for the subframes.

> I have looked at 
> http://lxr.mozilla.org/mozilla/source/dom/public/idl/base/nsIDOMWindowInternal.idl#50,
> i don't see one nsIDOMWindowInternal has a tree relationship between
> nsIDOMWindowInternal of iframe.

All the tree relationships are on nsIDOMWindow.

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

Reply via email to