"Darin Fisher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Waqas wrote:
>
> >i am trying to regster the browser listener but it fails.
> >creating to netscape's progress. please help ?
> >
> >
> >
> >_______________________________________________
> >Mozilla-xpcom mailing list
> >[EMAIL PROTECTED]
> >http://mail.mozilla.org/listinfo/mozilla-xpcom
> >
> >
>
> You need to provide some sample code that fails. Provide as much
> information as you can.
>
> -Darin
I want to get the progress calls from the netscape browser.
I have done this but it doesn't work.
nsCOMPtr<nsIWebBrowser> webBrowser;
webBrowser = do_GetService("@mozilla.org/embedding/browser/nsWebBrowser;1");
nsCOMPtr<nsIWebProgressListener>
listener(NS_STATIC_CAST(nsIWebProgressListener*, this));
nsCOMPtr<nsIWeakReference> thisListener(do_GetWeakReference(listener));
Nsresult rv = webBrowser->AddWebBrowserListener(thisListener,
NS_GET_IID(nsIWebProgressListener));
if (NS_FAILED(rv)) MessageBox(NULL,"Failed to add listener","",0);
I was doing some reading and I found out that I need to get the docshell to
get the existing browser.
I have registered the xpcom component and I do receive startup notification
on my
Observe(nsiobserver).
Can I get some help on how can I get the progress changes.? Later want to
get the images being loaded?
Waqas
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom