thanks for the response,
of course within OnStateChange I obtained the nsIDOMWindow iterface:
nsCOMPtr<nsIDOMWindow> pDOMWindow;
aWebProgress->GetDOMWindow(getter_AddRefs(pDOMWindow;));
This DOMWindow seem to be the IDOMWindow of the HTML document. In the
list saved before (IDOMWindow obtianed within the Observe method with
the "domwindowopened" signal), there are IDOMWindow which seem to be of
different kind (i.e. not of the HTML document, but the whole web browser
window with menu, location bar etc...). I found out that they never be
the same.
The question may be changed into: having the IDOMWindow of the WHOLE web
browser window, how can I obtain the interface to the HTML contained in it?
If anyone could help...
Vonuyx
Boris wrote:
vonuyx wrote:
MyComponent::OnStateChange(
nsIWebProgress* aWebProgress,
The question is: how can I determine, within the
MyComponent::OnStateChange method, in which browser window (from the
list I have obtained before) the web-browsing process is taking place?
See the nsIWebProgress interface. It has a DOMWindow property
(depending on what's in your list, this may be a subframe of a window in
your list, of course).
-Boris
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom