Florian Winkler wrote: > I have seen that you can download an already compiled version of that > XULrunner SDK from the the Mozilla FTP. But I was wondering how you > would actually run your embedded application, once you have compiled it.
You have to ship XULRunner (the runtime, not the SDK) with your application. In most cases, this could be as simple as unpacking XULRunner into a xulrunner/ subdirectory of your application. > Ok, sorry for not being any clearer. What I plan to do is integrate a > browsing solution into a C++ application that is neither MFC-based nor > something where I can use ActiveX easily. It is an application that > draws the UI using DirectX. This is indeed hard. I think that beginning with a Ubrowser base may be the best bet. > So ideally, I would like to have my compiled application with a browser > inside and a folder "extensions" in which I put ordinary Firefox > extensions. > Do you think this is possible, or does it imply that I have to embed > gecko and duplicate a lot of code that is in Firefox, in order to > achieve this? You will have to duplicate a fair amount code to achieve this. Even if you ignore the compatibility checks and upgrade and whatnot, you'll at least need to pass a directory provider to XRE_InitEmbedding which tells XPCOM where the extensions are located. > I honestly have no clue about what XRE_main API is all about. Could you > explain what you meant by "apps that use "XRE_Main" API to start the > app"? Did you mean that extensions are only supported if my app uses > XULrunner to start an "external" XUL application? This would not be > embedded, but the XUL application would pop up outside of my C++ > application, right? That is basically what I'm saying, yes. XUL application are typically launched with XRE_main, and embedders typically use XRE_InitEmbedding. See http://mxr.mozilla.org/mozilla/source/toolkit/xre/nsXULAppAPI.h > Just one more question, you stated that XULrunner comes with the Firefox > frontend, and I remember having read somewhere that "in the future", > Firefox should not come as a standalone application anymore, but as a > XUL application that is being run by XULrunner. The same was planned for > Thunderbird and other projects, so that you only have one single > runtime, i.e. XULrunner, and just start different applications on top of > it. Is that already the case? Or is this still planned for the future? I > mean, e.g. is Firefox 2.0.0.7 already done like that? No, and Firefox 3 doesn't ship that way either. But it is possible with the current trunk codebase to build and ship a Firefox built on top of XULRunner. --BDS _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
