Firefox开发人员版75中无法绕过签名检查

问题描述 投票:0回答:1

我正在尝试安装扩展程序而未对其进行签名。我尝试了以下步骤:

  1. 安装Firefox开发人员版本75
  2. xpinstall.signatures.required设置为false
  3. 重新启动Firefox
  4. 从扩展压缩文件中删除META-INF目录

但是当我尝试在插件管理器中安装扩展程序时,会得到

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

在浏览器控制台中,我得到

 1585752245599  addons.xpi  WARN    Invalid XPI: Error: Cannot find id for addon C:\the.zip(resource://gre/modules/addons/XPIInstall.jsm:1532:19) JS Stack trace: [email protected]:1532:19
async*[email protected]:2040:18
[email protected]:2989:20
[email protected]:4172:25
XPIProvider[meth]@XPIProvider.jsm:3138:28
[email protected]:238:31
getInstallForFile/<@AddonManager.jsm:1870:29
[email protected]:1883:7
[email protected]:4003:33
installAddonsFromFilePicker/</<@aboutaddonsCommon.js:238:42

可以在about:debugging中暂时成功安装附件

firefox firefox-addon signing add-on
1个回答
0
投票

选项xpinstall.signatures.required在Firefox Developer Edition 76上对我有用。您看到的错误消息不同于签名检查失败的错误消息。您是否用以下目录重新打包文件?:

+ zipfile.xpi
  + [folder]
    + manifest.json
    + background.js
    + ...

然后您需要重新打包不带文件夹的文件,并将文件直接放在存档文件下,例如:

+ zipfile.xpi
  + manifest.json
  + background.js
  + ...
© www.soinside.com 2019 - 2024. All rights reserved.