Hi all,

I am trying to embed gecko into gtk-window on linux. I implemented
nsIWebBrowserChrome and nsIEmbeddingSiteWindow interfaces in a single class,
myWebBrowser. I implemented the bare minimum functionality like,
GetWebBrowser,SetWebBrowser,DestroyBrowserWindow,GetSiteWindow. The
following line implements nsISupports interface,
NS_IMPL_ISUPPORTS2(myWebBrowser,nsIWebBrowserChrome,nsIEmbeddingSiteWindow)

Now i create myWebBrowser class object, mywebbrowser. But when i static cast
this object to nsIWebBrowserChrome object, to call GetWebBrowser, using
following code, it crashes with a seg-fault.
nsCOMPtr<nsIWebBrowserChrome> chrome =
NS_STATIC_CAST(nsIWebBrowserChrome*,mywebbrowser).

When is use NS_IMPL_ISUPPORTS1(myWebBrowser,nsIWebBrowserChrome), program
doesn't crash , but "LoadURI" call fails with error code 0x8000ffff.

I wonder what's going wrong. Also Is it possible to embed gecko in a
server-side mode i.e. without implementing nsIEmbeddingSiteWindow interface?

Any help is very much appreciated.
-- 
View this message in context: 
http://www.nabble.com/Embedding-gecko-into-linux-gtk-tf3704171.html#a10358725
Sent from the Mozilla - Embedding mailing list archive at Nabble.com.

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to