Thanks for the help Boris, it's working for me now. Grant
"Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Grant Gayed wrote: > > - Is it expected that nsIURIContentListener.IsPreferred(...) gets called > > when clicking on a link but not when navigating directly to a url? > > Yes. > > > - Is nsIWebBrowser.SetParentURIContentListener(...) the correct way to > > provide a nsIURIContentListener implementation? > > Depending on what you're doing with it, yes. > > > - Is my IsPreferred(...) implementation doing something wrong? (sets > > aDesiredContentType to null and returns true) > > Yes. It's claiming, for all types, that the docshell can handle them. This is > simply not the case. As one effect, you're bypassing the code that tries to > load plug-in libraries as needed. > > For comparison, see > <http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/suite/browser/nsBrowser ContentListener.js&rev=1.20#136>. > > Though note that that might only work with trunk... > > -Boris _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
