I've created a new XPCOM component (implementation of the nsIHttpAuthenticator class from Necko) but I'm not able to make it work with the standard Mozilla distribution (I'm working with Mozilla 1.4 on Linux). If I build Mozilla from sources and build the component in the Mozilla source tree using the headers and libraries (and Makefile rules) from the tree, everyhing works well. I can use regxpcom to update the compreg.dat and xpti.dat files, I can use the component from the xpcshell enviroment and if I start browser and try accessing a web page requiring the authentication method implemented by the component, the component seems get loaded properly (and correct http header containg data generated by the component is sent to the www server).
But I'd like to get it to work with a standard Mozilla distribution as available from the Mozilla site. I downloaded mozilla-i686-pc-linux-gnu-1.4.tar.gz from the Mozilla ftp archive, unpacked it and copied the component (ie. the .so library along with appropriate .xpt file) to the component directory. But after issuing the xpcom command from the new mozilla directory, nothing is changed in the compreg.dat file. I even tried to edit it manualy, but it didn't help (the xpcshell complains with
'uncaught exception: [Exception... "Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]" nsresult: "0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE)" location: "JS frame :: typein :: <TOP_LEVEL> :: line 2" data: no]
when I tryied to use the component.)
I'm new to the XPCOM world so I may be missing some obvious principle, please could anyone help me to solve the problem?
Thanks,
-- Dan
