2

我正在开发一个 Firefox 扩展,它在 Firefox 版本 12.* 中一直运行没有任何问题。

今天我将 FF 更新到 13.0.1 版本并相应地更改了 install.rdf 文件:

<em:targetApplication>
    <RDF:Description>
        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
        <em:minVersion>1.0</em:minVersion>
        <em:maxVersion>13.0.*</em:maxVersion>
    </RDF:Description>
</em:targetApplication>

但从那时起,将不会安装扩展程序。显示消息“-Extension name- cannot be installed because it is not compatible with Firefox 13.0.1”。我使用 Netbeans 的 foxbeans 插件创建了我的扩展的第一个虚拟版本(我曾经是 - 现在仍然是 Firefox 扩展开发的初学者),因此 install.rdf 和 install.js 文件会自动生成。如果您认为有帮助,请随时索取更多代码。

还有其他人有同样的问题吗?有什么可能的解释吗?

解决了:

这似乎是一个相当奇怪的 Firefox 错误。我发现问题是由我在扩展描述中放置的 & 号引起的:

<em:description>Demokritos Labeling & Filtering Client's Firefox Extension</em:description>

如果我将以上内容更改为:

<em:description>Demokritos Labeling and Filtering Client's Firefox Extension</em:description>

扩展安装正常。

这是一个小但相当奇怪的错误,我可能应该报告它。

4

1 回答 1

1

你的扩展中有 updateURL 吗?

有一个开放的错误,如果您的 updateURL 不正确,您将收到版本错误:

https://bugzilla.mozilla.org/show_bug.cgi?id=740378

于 2012-06-22T14:00:12.293 回答