Anup wrote:
I am a total newbie to Firefox-code so I honestly couldnt make out much by stepping through (nsCOMPtr<nsIWebBrowserChrome> browserChrome(do_GetInterface(mTreeOwner))). I wasnt even sure what I was trying to check while stepping through. Could you please elaborate on this??
Basically, the tree owner (in your case presumably nsDocShellTreeOwner if you're using nsWebBrowser) is being asked for an nsIWebBrowserChrome. That's not an interface Gecko implements. It's an interface the embeddor is supposed to implement.
You can let Gecko know about it by directly calling SetContainerWindow with the right pointer on the nsWebBrowser or by calling SetTreeOwner on the nsWebBrowser with an object which hands back an nsIWebBrowserChrome from its GetInterface.
I should note that there's a code snippet in https://developer.mozilla.org/En/Mozilla_embedding_APIs_overview which does something like this.
-Boris _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
