retval = servMan->GetServiceByContractID("@mozilla.org/regioncapture;1
", NS_GET_IID(nsIRegionCapture), getter_AddRefs(regionPrinter));
I have tried adding the .js and .xpt files to the xulrunner components subdirectory (which I had to create), added chrome.manifest files pointing to the component, and even tried programmatic registration through
retval = NS_GetComponentRegistrar(getter_AddRefs(registrar));
retval = registrar->AutoRegister(file);
all to no avail. Can someone point out the missing link?