You’re getting the error because the extension doesn’t have an ID.
Extensions and the add-on ID > When do I need an add-on ID?
For Manifest V2 extensions, you need to add an add-on ID when:
You want to install an unsigned add-on from its XPI file, rather than loading it temporarily using about:debugging
.
You can set the ID with browser_specific_settings.
But then you get a different error:
This add-on could not be installed because it has not been verified.
The error means that the extension is unsigned, but you can install it in one of the “special” Firefox versions:
Signing and distributing your add-on > Signing your add-ons
Unsigned extensions can be installed in the Developer Edition, Nightly, and ESR versions of Firefox, after toggling the xpinstall.signatures.required
preference in about:config
. To use this feature your extension must have an add-on ID.
edit:
I’m assuming that you install the extension in about:addons, with:
- Tools for all add-ons (the gear icon to the right of “Manage Your Extensions”)
- Install Add-on From File