gpt4 book ai didi

firefox-addon - 如何使 firefox 扩展兼容?

转载 作者:行者123 更新时间:2023-12-03 16:20:37 26 4
gpt4 key购买 nike

我已经开发了一个 firefox 扩展,但是 firefox(v. 3.6.14)说这个扩展与这个 firefox 版本不兼容。

我认为我的 install.rdf 是有效的。它包含

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

任何建议可能是什么问题?什么会导致这种不兼容性?

最佳答案

我没有测试过,但是尝试使用格式

<em:maxVersion>4.0.0.*</em:maxVersion>

<em:maxVersion>4.0.*.*</em:maxVersion>

来自 https://developer.mozilla.org/en/extension_versioning,_update_and_compatibility :

Do not mistakenly think that * in a version represents any version. The * actually represents an infinitely high number and so is really only sensibly used in the maxVersion. Using it in a minVersion usually doesn't produce the effect you want.

关于firefox-addon - 如何使 firefox 扩展兼容?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5185282/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com