加载解压缩的扩展程序并不适用于Firefox

时间:2018-01-26 14:13:22

标签: firefox firefox-addon firefox-addon-sdk firefox-webextensions

"无法安装此插件,因为它似乎已损坏"

我在安装解压缩的扩展程序时遇到上述错误。 我只是使用Winrar解压扩展,然后将文件夹拖到Firefox插件/扩展页面。

另外,将它压缩到addon.xpi也不起作用。

我的目标:我正在编辑扩展程序以满足我的需求而且它似乎无法正常工作。

我认为Firefox有点签名或其他东西,如何禁用此功能或编辑扩展程序以满足要求。

我正在运行 58.0(64位)

使用调试加载时,扩展程序出现以下错误(Mozilla about:debugging)

edited.xpi original.xpi 都有错误。 (但 edited.xpi 通过加载临时扩展程序加载,但不会为拖动方法加载。)

Reading manifest: Error processing background.persistent: Event pages are not currently supported. This will run as a persistent background page.
Reading manifest: Error processing permissions.4: Value "identity.email" must either: must either [must either [be one of ["clipboardRead", "clipboardWrite", "geolocation", "idle", "notifications"], be one of ["bookmarks"], be one of ["find"], be one of ["history"], be one of ["activeTab", "tabs"], be one of ["browserSettings"], be one of ["cookies"], be one of ["topSites"], be one of ["webNavigation"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["alarms", "mozillaAddons", "storage", "unlimitedStorage"], be one of ["browsingData"], be one of ["devtools"], be one of ["identity"], be one of ["menus", "contextMenus"], be one of ["pkcs11"], be one of ["geckoProfiler"], be one of ["sessions"], be one of ["contextualIdentities"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], be one of ["theme"], or match the pattern /^experiments(\.\w+)+$/], or must either [be one of ["<all_urls>"], match the pattern /^(https?|wss?|file|ftp|\*):\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$/, or match the pattern /^file:\/\/\/.*$/]
Reading manifest: Error processing oauth2: An unexpected property was found in the WebExtension manifest.
Reading manifest: Error processing options_page: An unexpected property was found in the WebExtension manifest.

以下是浏览器控制台中的错误:

          1516983623806 addons.webextension.<unknown>   WARN    Loading extension 'null': Reading manifest: Error processing background.persistent: Event pages are not currently supported. This will run as a persistent background page.
1516983623811   addons.webextension.<unknown>   WARN    Loading extension 'null': Reading manifest: Error processing permissions.4: Value "identity.email" must either: must either [must either [be one of ["clipboardRead", "clipboardWrite", "geolocation", "idle", "notifications"], be one of ["bookmarks"], be one of ["find"], be one of ["history"], be one of ["activeTab", "tabs"], be one of ["browserSettings"], be one of ["cookies"], be one of ["topSites"], be one of ["webNavigation"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["alarms", "mozillaAddons", "storage", "unlimitedStorage"], be one of ["browsingData"], be one of ["devtools"], be one of ["identity"], be one of ["menus", "contextMenus"], be one of ["pkcs11"], be one of ["geckoProfiler"], be one of ["sessions"], be one of ["contextualIdentities"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], be one of ["theme"], or match the pattern /^experiments(\.\w+)+$/], or must either [be one of ["<all_urls>"], match the pattern /^(https?|wss?|file|ftp|\*):\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$/, or match the pattern /^file:\/\/\/.*$/]
1516983623812   addons.webextension.<unknown>   WARN    Loading extension 'null': Reading manifest: Error processing oauth2: An unexpected property was found in the WebExtension manifest.
1516983623812   addons.webextension.<unknown>   WARN    Loading extension 'null': Reading manifest: Error processing options_page: An unexpected property was found in the WebExtension manifest.
1516983623816   addons.xpi  WARN    Please specify whether you want browser_style or not in your options_ui options.
1516983623829   addons.xpi  WARN    Add-on {487609b5-5ca6-4c62-8523-11f3e1db851c} is not correctly signed.
1516983623830   addons.xpi  WARN    Add-on {487609b5-5ca6-4c62-8523-11f3e1db851c} is not correctly signed.
1516983623830   addons.xpi  WARN    Invalid XPI: signature verification failed

希望完全有一个解决方案可以安装扩展而无需通过临时方法安装。

1 个答案:

答案 0 :(得分:1)

  • 在浏览器控制台(而非Web控制台)中查找与已加载的插件相关的错误。
  • 您是否尝试过使用about:debugging?
  • 在Firefox Nightly中,您可以通过在about:config中将xpinstall.signatures.required设置为false来禁用签名。在其他版本中,出于安全原因,这无效。