Firefox 3.6 , mozilla 1.9.2.23 embedded sample

2011-12-01 Thread philippe
Hello

I built a browser wih gecko 1.8 using MOZILLA_INTERNALS.. It worked
fine. I could navigate, call external C functions through javascript,
inhject javascript, redirect on pages, extract HTML code 

Right now, I try to embed gecko 1.9.2.23 (Firefox 3.6), but It's a
great pain. I started with the mozMFC sample, and built my solution
without MFC. (I Build my own native window).

I can do the bind, without problems, (XRE_InitEmbedding)
I can create the browser, ans start to navigate. But If I navigate for
example on http://www.yahoo.com , an erratic page is displayed, I have
no focus on it, no images. I cannot use the href nor links, and If I
try to do some iput I get a memory fault.

Debugging, I go into onLocationChage, and on StateChange

Is there an existing sample, regarding a project like mine, with
sources.


Could someone help me.

Thanks a lot for your responses.
___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: Firefox 3.6 , mozilla 1.9.2.23 embedded sample

2011-12-01 Thread philippe
On 1 déc, 14:13, philippe pa510...@exchange.france.ncr.com wrote:
 Hello

 I built a browser wih gecko 1.8 using MOZILLA_INTERNALS.. It worked
 fine. I could navigate, call external C functions through javascript,
 inhject javascript, redirect on pages, extract HTML code 

 Right now, I try to embed gecko 1.9.2.23 (Firefox 3.6), but It's a
 great pain. I started with the mozMFC sample, and built my solution
 without MFC. (I Build my own native window).

 I can do the bind, without problems, (XRE_InitEmbedding)
 I can create the browser, ans start to navigate. But If I navigate for
 example onhttp://www.yahoo.com, an erratic page is displayed, I have
 no focus on it, no images. I cannot use the href nor links, and If I
 try to do some iput I get a memory fault.

 Debugging, I go into onLocationChage, and on StateChange

 Is there an existing sample, regarding a project like mine, with
 sources.

 Could someone help me.

 Thanks a lot for your responses.

It appears that I've problems with pages containing javascript

For example when I try an iput in one of my pages . I walk through
this code



   nsCOMPtrnsIScriptGlobalObjectOwner
theGlobalObjectOwner(do_GetInterface(mWebBrowser));  // nsIWebBrowser
nsIWebBrowser ,

if (theGlobalObjectOwner)
{
nsIScriptGlobalObject* theGlobalObject;
theGlobalObject=theGlobalObjectOwner-GetScriptGlobalObject();

nsIScriptContext* theScriptContext = theGlobalObject-
GetContext();


theGlobalObjectOwner-GetScriptGlobalObject(); don't work and
theGlobalObject is null.

When I've links they don't work, and a scrollbar don't work too


It's a mess !








___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: Registering for event

2011-12-01 Thread Marsha18Erickson
freelance writer


___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding