[EMAIL PROTECTED] wrote:
> Hi,
> 
> If I have a pointer to nsGlobalWIndow, how can I find out if a pointer
> to nsGlobalWindow is the outermost window? There should only be 1
> outermost window per each page load ? How can I tell which one
> nsGlobalWindow is the outermost?
> 
> I try chekcing 'IsOuterWindow()" in the setNewDocument of
> nsGlobalWindow, but I find there are multiple nsGlobalWindow returns
> true for 'IsOuterWindow()'
> 
> Thank you.

What you mean with 'outermost'? The top level chrome window (inner or
outer?)? Top level content window (inner or outer)?
Is .top the window you want?
http://lxr.mozilla.org/seamonkey/source/dom/public/idl/base/nsIDOMWindow.idl#78

There is pretty much always inner-outer -window pair. Together
those form the object which in JS is |window| (sort of).


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

Reply via email to