Corrupt XPI file: "The add-on downloaded from this site could not be installed because it appears to be corrupt."

I am working on my first firefox add-on. I followed the instructions here and here, using the exact example code that is included in the tutorial. I set xpinstall.signatures.required to false. I tried to load the xpi file into firefox but I’m getting this error message:

The add-on downloaded from this site could not be installed because it appears to be corrupt.

error
I uploaded the xpi file here: https://gofile.io/d/D81R5h

Originally I was working on my own extension and I was seeing this error. Then I tried using the exact code from the tutorial, and I’m still seeing the same error. What is the problem?

firefox 76.0.1
linux 5.6.10

Go to about:debugging#/runtime/this-firefox, click the “Load Temporary Add-on…” button and load your unsigned XPI from there.

You can also use https://github.com/mozilla/web-ext to help you build, run, and test your web extensions.

1 Like

I used that page to load manifest.json but didn’t try it with the xpi. Loading the xpi is working through that page. I feel kind of stupid now.

Why can’t I load it using about:addons?

Hi Drew, the preference to not require signatures doesn’t work in the normal release version. You can use it in the Developer Edition if you like.

https://support.mozilla.org/kb/add-on-signing-in-firefox