So, I’m developing a (currently unpublished) extension. I really want to be able to use it on the daily, to be my own quality assurance. Unfortunately every time I’ve tried to install my add-on, it errors with “This add-on could not be installed because it appears to be corrupt”. I’ve gone down the rabbit hole, done everything I can, all to no avail.
This is everything I’ve done and am sure of:
- I’m using Firefox Developer, 94.0b5 (64-bit)
- On Arch Linux 5.14.9-arch2-1
-
xpinstall.signatures.requiredis set tofalsein theabout:config- In Firefox Developer, yes, I’ve checked
- I’ve also set
xpinstall.whitelist.requiredtofalse
- I am zipping my extension in a compatible way
- I’m using no compression, with the command
zip -0r ./extension.xpi ./extension
- I’m using no compression, with the command
- My
manifest.jsonhas no errors- It only contains the mandatory keys,
manifest_version,name,version, and hasbrowser_specific_settingsset-
manifest_versionis2 -
nameconsists only of ASCII charactersA-Z,a-zand space -
versionis"0.1" -
browser_specific_settingsis an object with one key,gecko, which is an object with one key,id, set to"extension@danii.dev"
-
- I have confirmed it is valid JSON by using this command in a Node REPL:
require("fs").readFile("manifest.json", (_, file) => console.log(JSON.parse(file.toString())));
- It only contains the mandatory keys,
- Installing it as just a folder doesn’t work
- It manages to parse the manifest and show a prompt with an
Addbutton- Clicking
Adderrors withExtension could not be installed because Firefox Developer Edition cannot modify the needed file.- This isn’t a problem with my drive, it’s just that the add-on installation code doesn’t know how to read an extension from a folder but the verification code can -.-
- I know this because in the browser console the exact error is
Unix error 21 during operation read on file(folder path)(Is a directory)
- I know this because in the browser console the exact error is
- This isn’t a problem with my drive, it’s just that the add-on installation code doesn’t know how to read an extension from a folder but the verification code can -.-
- Clicking
- It manages to parse the manifest and show a prompt with an
- This error drives me crazy
Is this a bug? Or am I extremely ignorant?
