Looking for working XPCOM component example (C++)

I know XPCOM isn’t all that popular anymore.
However, I’d still like to hack on some Firefox internals using the XPCOM C++ ABI.

Following this (quite outdated) sample and the following moz.build I end up with quite a few errors when running ./mach build from the gecko-dev root directory. Errors I’m unable to fix on my own.


XPIDL_MODULE = 'sample'




Is there any more recent documentation available?


A nap and a mug of coffee later, I’m all set.

Will post a link to my simple XPCOM C++ sample later, once I’ve had the time to thoroughly document and push it to Github.