2011-03-03 38 views
3

我开发了一个firefox扩展,但firefox(v。3.6.14)说扩展与这个firefox版本不兼容。如何使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> 

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

+0

为什么不使用'3.6'? Afaik,这些次要版本(无论它们被称为)不会引入新的功能,它们只能修复错误。 – 2011-03-03 19:43:13

回答

2

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

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

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

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

不要误以为*在 版本代表任何版本。 * 实际上表示无限高的 数字,因此实际上仅在maxVersion中使用 。在 minVersion中使用它通常不会产生所需的 效果。