I'm replied to myself,

I've managed to fix my problems :

*) RegisterFactory with 5 parameters, it seems to works without the 5
*) GetChromeEventHandler and GetPrivateRoot :
I've changed
nsCOMPtr<nsPIDOMWindow> domWindowPrivate =
do_QueryInterface(domWindow);
nsCOMPtr<nsIDOMWindowInternal> rootWindow;
domWindowPrivate->GetPrivateRoot(getter_AddRefs(rootWindow));
to
nsCOMPtr<nsPIDOMWindow> domWindowPrivate =
do_QueryInterface(domWindow);
nsCOMPtr<nsIDOMWindowInternal> rootWindow;
rootWindow = domWindowPrivate->GetPrivateRoot();

(same thing for GetChromeEventHandler)
*) with CreateInstance(NS_SIMPLEURI_CONTRACTID ...
I use do_CreateInstance :
nsCOMPtr<nsIURI> url = do_CreateInstance( NS_SIMPLEURI_CONTRACTID, &rv
);
rv = url->SetSpec(nsCAutoString(utf8_buffer));


Finally, I've a lot of errors linkings but thanks to
http://developer.mozilla.org/en/docs/XPCOM_Glue, it's ok

But, severals problems remains :
crash of wxMozilla with a <form with a password field
crash with any url in https

Maybe more work to fully enabled --enable-single-profile ?

Thanks,
Michael


my about:buildconfig
--enable-application=browser
--disable-ldap
--disable-mailnews
--enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,gnomevfs

--enable-crypto
--disable-composer
--enable-single-profile
--disable-profilesharing
--disable-tests
--disable-debug
--enable-optimize
--disable-mailnews
--disable-ldap
--without-system-nspr
--without-system-zlib
--without-system-jpeg
--without-system-png 
--without-system-mng 
--enable-crypto

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to