Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Can't install addon because it seems to be corrupt

  • 3 个回答
  • 6 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

I developed a Firefox addon which is only for users in my company. So I and want to distribute the .xpi file for manual installation. Now, I uploaded the .zip file to addons.mozilla.org where the addon passes the automatic tests and I am able to sign it, which I did. After downloading the .xpi file Firefox says, that the addon can not be installed because it "appears to be corrupt".

I developed a Firefox addon which is only for users in my company. So I and want to distribute the .xpi file for manual installation. Now, I uploaded the .zip file to addons.mozilla.org where the addon passes the automatic tests and I am able to sign it, which I did. After downloading the .xpi file Firefox says, that the addon can not be installed because it "appears to be corrupt".

被采纳的解决方案

OK. I checked the documentation of the manifest.json file and it looks like a missing matches key in the content_scripts object.

Adding this key as a test allows to load the extension via about:debugging.

  "content_scripts": [
    {
      "matches": ["*://*.mozilla.org/*"],
      "js": ["ELiSA.js", "aes.js"],
      "css": ["ELiSA.css"]
    }
  ],
定位到答案原位置 👍 1

所有回复 (3)

more options

You can find both, the .zip and the .xpi in my dropbox: here

more options

I get the same error (even tried about:debugging in Nightly), so there is definitely something wrong here (manifest.json?).

Maybe consider to ask advice elsewhere.

more options

选择的解决方案

OK. I checked the documentation of the manifest.json file and it looks like a missing matches key in the content_scripts object.

Adding this key as a test allows to load the extension via about:debugging.

  "content_scripts": [
    {
      "matches": ["*://*.mozilla.org/*"],
      "js": ["ELiSA.js", "aes.js"],
      "css": ["ELiSA.css"]
    }
  ],