2011-03-03 66 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中使用它通常不會產生所需的 效果。