Hi,

I have an application that embeds gecko. What I'm trying to do is to
notify the "client" about progress changes from an XPCOM component. The
client implements the nsIWebProgressListener interface.

So this is what I tried (from the XPCOM component):

nsCOMPtr<nsIWebBrowser> pBrowser =
   do_GetService("@mozilla.org/embedding/browser/nsWebBrowser;1�");

nsCOMPtr<nsIWebProgressListener> pListener;

pListener =
   pBrowser->QueryInterface(NS_GET_IID(nsIWebProgressListener),
   (void**)&pListener));

pListener->onProgressChange(0, 0, 0, 0, 0); // to see if it works

The pointers are valid, but onProgressChange() doesn't get executed.
I'm not sure if this even how to do it. Is something like this even
possible?

Thanks,
-Willy

_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to