BuS wrote:
fBrowser is an instance of nsIWebBrowser.
Declared as: nsCOMPtr<nsIWebBrowser> fWebBrowser;
Initialized as: fWebBrowser =
do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &rv);

Hmm... Calling SetParentURIContentListener should work, then... fWebBrowser is an nsWebBrowser given that call, and nsWebBrowser::SetParentURIContentListener sets the parent content listener on the docshell it owns... And it looks like at least OnStartURIOpen should get passed on to your listener when a uri load happens in the docshell.


Out of curiousity, does WebBrowserImpl implement nsISupportsWeakReference? You may want to have it inherit from nsSupportsWeakReference and see whether that affects anything...

I am embedding Mozilla 1.4 here.
Is it still good to use nsIURIContentListener?

It should be, yes.


-Boris

_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to