Sorry if I missed the boat, but is nsSample.js broken?  I copied 
sample.xpt and nsSample.js into my Components directory (running nightly 
build 2002021708), and I deleted both components.reg and 
components\xpti.dat.

When I start mozilla, I get:

Error: compMgr.registerComponentWithType is not a function
Source File: file:///C:/Internet/Mozilla/components/nsSample.js
Line: 72

on the JS console.  I was getting the same error with a component I am 
implementing myself, and figured it was "just me", but my confidence in 
my inadequacy diminished when I saw the sample component fail the same 
way...

Has something changed in the way XPCOM interfaces are implemented using 
JavaScript, and if so, can someone point me at a reference or a new sample?

Thanks
sean


Reply via email to