On May 3, 10:30 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> krithika wrote:
> > I just have nsIWebBrowserChrome and nsIWebBrowser instance with me.
>
> You should be able to getInterface an nsIWebProgress off the object 
> implementing
> nsIWebBrowser, I think.
>
> That said, you might also be able to register nsIWebProgressListeners directly
> using nsIWebBrowser::addWebBrowserListener, depending on what you want.
>
> -Boris


Thanks for your inputs. I just did a check to see if the dom window
from watcher.openWindow and from nsIWebProgress are same as shown

//============================
nsIDOMWindow childWindow = windowWatcher.openWindow(....)

onStatusChange(nsIWebProgress aWebProgress , ..)
{

            nsIDOMWindow win = aWebProgress.getDOMWindow();

           if(childWindow == win)
           {
                 // do my work here
           }
}
//============================

It seems to work.Let me know if this is fool proof.Will I have
problems with this check?

thanks in advance,
Krithika

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

Reply via email to