not so sure about embedding XULRunner vs embedding Gecko only

View: New views
2 Messages — Rating Filter:   Alert me  

not so sure about embedding XULRunner vs embedding Gecko only

by Vlad Grecescu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am trying to both build a XUL(runner) application _and_ embed
XULRunner from C++ (with possibly some custom XPCOM components).

For what I see, all the examples are for embedding a Gecko rendering
window.

So my question is, is it possible to embed XULRunner which runs a XUL
application?

(p.s. What is the second parameter to XRE_InitEmbedding? is it the
profile directory or the path to the application.ini?)

Thanks in advance,
Vlad
_______________________________________________
dev-embedding mailing list
dev-embedding@...
https://lists.mozilla.org/listinfo/dev-embedding

Re: not so sure about embedding XULRunner vs embedding Gecko only

by Vlad Grecescu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 30, 2008 at 12:51 PM, Vlad <b100dian@...> wrote:

> Hello,
>
> I am trying to both build a XUL(runner) application _and_ embed
> XULRunner from C++ (with possibly some custom XPCOM components).
>
> For what I see, all the examples are for embedding a Gecko rendering
> window.
>
> So my question is, is it possible to embed XULRunner which runs a XUL
> application?
>
> (p.s. What is the second parameter to XRE_InitEmbedding? is it the
> profile directory or the path to the application.ini?)
>

Just so that I can answer my own question;)

The second parameter to XRE_InitEmbedding is indeed the path to a XUL
application.
To start the application you need to make your nsWebBrowser navigate to a
valid chrome:// url

For example, use /usr/lib/firefox-3.0[.1] as the second parameter to
XRE_InitEmbedding *and* navigate to chrome://browser/content/browser.xul to
actually start the browser (firefox) application.

Cheers,
Vlad
_______________________________________________
dev-embedding mailing list
dev-embedding@...
https://lists.mozilla.org/listinfo/dev-embedding