代码之家  ›  专栏  ›  技术社区  ›  Bob Kimani

加载未打包的扩展无法运行Firefox

  •  2
  • Bob Kimani  · 技术社区  · 7 年前

    “无法安装此加载项,因为它似乎已损坏”

    我在安装未打包的扩展时遇到上述错误。 我只是用Winrar解包了扩展,然后将文件夹拖到Firefox插件/扩展页面。

    再加上将其压缩到插件。xpi也不起作用。

    我的目标 :我正在编辑扩展以满足我的需要,但它似乎不起作用。

    我假设Firefox有类似的签名之类的东西,我如何才能禁用它或编辑扩展以满足要求。

    我正在跑步 58.0(64位)

    使用调试加载扩展时出现以下错误(Mozilla关于:调试)

    二者都 这个 已编辑。xpi公司 起初的xpi公司 有错误。(然而 已编辑。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 回复  |  直到 7 年前
        1
  •  3
  •   Sergey Vyacheslavovich Brunov prodigitalson    4 年前
    • 在浏览器控制台(非Web控制台)中查找与加载的加载项相关的错误。
    • 您是否尝试过使用 about:debugging ?
    • 在Firefox Nightly中,您可以通过设置禁用签名 xpinstall.signatures.required false 在里面 about:config . 在其他构建上,出于安全原因,这不起作用。