I got it to work, with wnd.parentContentListener = myListener; The odd behavior, I see is that the listener gets called multiple times. Its different for different sites and is also somtimes +/-1 callback for the same site. And this doesn't seem to be related to the number of resources URIs fetched.
Thanks -ashish On 6/27/07, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > > Ashish Motivala wrote: > > var wnd = window.QueryInterface( > > Components.interfaces.nsIInterfaceRequestor) > > .getInterface(Components.interfaces.nsIWebNavigation) > > .QueryInterface(Components.interfaces.nsIDocShell) > > .QueryInterface(Components.interfaces.nsIInterfaceRequestor) > > .getInterface(Components.interfaces.nsIURIContentListener); > > wnd.parentURIContentListener = myListener; > > That looks like it should work.... Except the property is called > parentContentListener. > > > Don't we need to get the nsIURILoader interface to be able to > > registerContentListener? > > You can do that too, but that does something different. I doubt that's > what you > want here. > > -Boris > > _______________________________________________ > dev-embedding mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-embedding > _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
