On Jan 19, 4:09 pm, Timothy Madden <[email protected]> wrote: > Hello > > I embedded the browser in my application and I would like to get a > pointer to the DocShell after loading a URL. How could I do that ? > > nsIDocShell appears to be documented, or at least it was when it was > called WebShell, but still I get no links to how to get to the interface .. > > Thank you, > Timothy Madden
HI Tim, nsCOMPtr< nsIDocShell > docShell = do_GetInterface( mWebBrowser ); XPCOM/Gecko/FF/Mozilla code relies heavily on interface navigation (like any other COM-like framework, I suppose). How and when an object supports multiple interfaces is forbidden Jedi knowledge IMHO. I never have found anything explaining clearly and deeply who does what, also because there are some millions lines of code out there. Use MXR and search for snippets of code. Ciao, Aaron PS: I am in the middle of understanding how scrolling works. Just try to search "scroll" in MXR and get what I mean. :) _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
