[EMAIL PROTECTED] wrote:
Michal Ceresna писал(а):
On Friday 07 July 2006 20:07, [EMAIL PROTECTED] wrote:
Hello,
I know about the NS_XRE_ENABLE_EXTENSION_MANAGER flag for nsXREAppData,
but there seems to be no way to pass it to XRE_InitEmbedded.
the extension manager can be either enabled programmatic with setting
the field 'flags' in nsXREAppData passed to XRE_main
or in application.ini:
Both ways seem to be available only in xulrunner-as-application
deployment (XRE_main or the xulrunner binary), but not in embedded
libxul DLL/DSO initialized with XRE_InitEmbedded. Am I wrong?
All 'extension management' does is configure directory service providers
with a list of extension directories, and restart the application in certain
circumstances. If you are using XRE_InitEmbedding you will need to provide
the list of extension directories yourself, and manage restarting for
extension installation (obviously xulrunner can't know how to restart your
embedded application).
See http://lxr.mozilla.org/mozilla/source/toolkit/xre/nsXULAppAPI.h#155
and the extension manager logic at
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/xre/nsAppRunner.cpp&rev=1.138&mark=2280-2302#227
--BDS
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding