Re: Registering components under XULRunner 24

Christian Sell <[email protected]> Mon, 17 Feb 2014 04:03:28 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.embedding
Message-ID <[email protected]>
I have copied the XPCOMUtils.jsm from a recent firefox install. Still doesn't work. I have then registered a console listener. The error message I see is:

Could not read chrome manifest 'file:///G:/mozilla24/xulrunner'.

as already mentioned above, I am creating the file like this

nsCOMPtr<nsILocalFile> file(do_CreateInstance("@mozilla.org/file/local;1", &retval));
nsILocalFile *greDir;
retval = directory->Get(NS_GRE_DIR, NS_GET_IID(nsILocalFile), (void **)&greDir);
file->InitWithFile(greDir);
file->AppendRelativePath(NS_LITERAL_STRING("components/components.manifest"));

//later: registrar->AutoRegister(file); 

It seems the file I pass to the AutoRegister method is not valid. In particular, the part I add via AppendRelativePath seems to get lost, but why?? I've tried all permutations I can come up with, still the same...