rem: compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.registerComponentWithType(this.myCID, "Sample JS Component", this.myProgID, fileSpec, location, true, true, type); 
add: compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(this.myCID, "Sample JS Component", this.myProgID, fileSpec, location, type); 
context:     registerSelf: function (compMgr, fileSpec, location, type) {        if (this.firstTime) {            dump("*** Deferring registration of sample JS components\n");            this.firstTime = false;            throw Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN;        }        dump("*** Registering sample JS components\n");        compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete);        compMgr.registerComponentWithType(this.myCID,                                          "Sample JS Component",                                          this.myProgID, fileSpec,                                          location, true, true,                                          type);    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/894fdcfaaf75211cd8124dc9fa1545183d819184/nsSample.js/clean/xpcom/sample/nsSample.js