Hi,
I am a new comer to mozilla embedding world. I wanted to embed the
latest mozilla browser inside my application. So i took the latest
mozilla's XulRunner code from the following location and built with
VS2008
ftp://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.7/source/
Then i played little with the testproject WinEmbed and then started
real stuff embedding mozilla engine inside my application.
Everything (XPCOMGlueStartup, XRE_InitEmbedding, window creation ...)
goes fine till i try to load the url inside browser. The following
loadURI of nsIWebNavigation is fails and throwse nsError saying
NS_ERROR_OUT_OF_MEMORY
// Start loading a page
nsCOMPtr<nsIWebBrowser> newBrowser;
chrome->GetWebBrowser(getter_AddRefs(newBrowser));
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface
(newBrowser));
wchar_t *url = L"www.google.com";
return webNav->LoadURI(url, //NS_ConvertASCIItoUTF16(url).get
(),
nsIWebNavigation::LOAD_FLAGS_NONE,
nsnull,
nsnull,
nsnull);
Am i missing anything, could you please shed some light. I am sure lot
many people have successfully embedded mozilla.
Thanks in advance.
-ranga
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding