使用xulrunner-sdk-9.0.1编译firefox扩展

发布于 2024-12-23 01:06:37 字数 223 浏览 2 评论 0原文

我有一个 FF 工具栏可以在所有以前的版本中使用。我已经用 xulrunner-sdk-9.0.1 编译了它并创建了新的 xpi。现在,在尝试安装工具栏(将 xpi 拖到浏览器上)时,我收到以下错误:

无法安装 ToolbarName,因为它与 Firefox 9.0.1 不兼容

有人能告诉我 Firefox 9.0.1 有什么特别之处吗?

I have a FF toolbar working in all previous versions. I've compiled it with xulrunner-sdk-9.0.1 and created new xpi. Now on attempt to install the toolbar (dragging xpi onto browser) I'm getting a following error:

ToolbarName could not be installed because it is not compatible with Firefox 9.0.1

Can somebody tell what's special with Firefox 9.0.1?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

菊凝晚露 2024-12-30 01:06:37

此错误消息表明该扩展未标记为与 Firefox 9.0.1 兼容,它实际上仅与扩展元数据有关。通常,扩展程序的 install.rdf 文件将包含如下内容:

<em:targetApplication>
  <Description>
    <!-- firefox -->
    <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
    <em:minVersion>9.0</em:minVersion>
    <em:maxVersion>9.0.*</em:maxVersion>
  </Description>
</em:targetApplication>

在您的情况下,maxVersion 似乎是一些较小的值 - 更新它并重试。

This error message indicates that the extension is not marked as compatible with Firefox 9.0.1, it is really only about extension metadata. Typically the install.rdf file of your extension will contain something like this:

<em:targetApplication>
  <Description>
    <!-- firefox -->
    <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
    <em:minVersion>9.0</em:minVersion>
    <em:maxVersion>9.0.*</em:maxVersion>
  </Description>
</em:targetApplication>

In your case it seems that maxVersion is some smaller value - update it and try again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文