Crash in XRE_InitEmbedding2 since Firefox 10

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Crash in XRE_InitEmbedding2 since Firefox 10

Daniel Paepke
Hello,

we are using the Embedded API for rendering. Since Firefox 10 we get a
crash while creating (constructor) the MozApp-object. More precisely
the crash is by calling the API 'XRE_InitEmbedding2()' (its function-
pointer is valid!) in 'InitEmbedding()' of the MozApp constructor in
the xul.dll (Fileversion: 10.0.0.4411 BuildID: 20120129021758). Up to
version 9 of Firefox we do not have this crash - only since version
10. You can find details in the following bug report here:
https://bugzilla.mozilla.org/show_bug.cgi?id=724822

Now, we have adapted the Embedded API and it works for us with xul-
runner 10.0.2... but there are some points left - therefore we
actually use simple/stupid workarounds to make it work for us - but
this is not a good solution (especially for all).

1. The Embedded API uses the API 'GRE_GetGREPathWithProperties'. But
it is missing in the xul-runner 10.0.2 sources. Actually we would like
to search the windows registry for the Firefox installation-path to
call 'XPCOMGlueStartup'. But this is not a good solution for everyone.
What could be the better solution here?

2. I get a build-error, that 'ToProvidedString' in 'nsNetUtil.h' of
the xul-runner 10.0.2 sources is missing, when building the Embedded
API. How could be the solution look here?

3. Additional some API definitions have changed their data-types from
'PRBool' zu 'bool' - this is pretty simple to fix.

But my questions are:
Would someone adapt the Embedded API in the offical way so it can be
used with the actual sources of xul-runner without special adaptions?
And if not: Who is the responsible developer for this part in the
mozilla project to talk to for adapting the Embedded API together?

Many thanks for your help!
_______________________________________________
dev-embedding mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-embedding
Reply | Threaded
Open this post in threaded view
|

Re: Crash in XRE_InitEmbedding2 since Firefox 10

wilscm
Hi Daniel,

On Monday, March 5, 2012 7:38:07 AM UTC, Daniel Paepke wrote:

> we are using the Embedded API for rendering.

Unfortunately Mozilla have decided to widthdraw the embedded API as far as I can tell:

https://groups.google.com/forum/#!topic/mozilla.dev.embedding/c_NMcO-N8wo/discussion

So I'm afraid you're unlikely to get any help in fixing this. You might want to try WebKit (WebKitGtk) or gtkhtml instead.

Cheers, Chris.
_______________________________________________
dev-embedding mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-embedding