Firefox插件无法与标签< em:updateURL> [英] Firefox add-on doesn't work with tag <em:updateURL>
问题描述
根据mozilla.org上的手册,add-on的install.rdf中应该有一个
< em:updateURL>
条目,包含一些更新的链接.RDF。看起来很简单。 但是,当我添加< em:updateURL> some_url< / em:updateURL>
,加载项不起作用。我使用Netbeans IDE和Foxbeans插件进行开发,当我从这个IDE运行插件项目时,Firefox会在插件关闭的情况下运行(并禁用开启)。当我编译XPI并将其添加到Firefox(3.6.12)时,它提到版本不兼容,也不起作用。如果我在updateURL中使用http或者https,那么无关紧要。
如果这个标签是空的,像这样:< em:updateURL> ;< / em:updateURL>
,一切正常(但当然不会自动更新)
在install.rdf < em:updateURL>
应该在之后 < em:targetApplication>
,而不是之前。
希望这可以帮助某人。
I have a custom Firefox add-on. It worked ok, until we decided to make it self update-able.
According to manuals at mozilla.org, there should be an <em:updateURL>
entry in add-on's install.rdf, containing a link to some update.rdf. Seems pretty simple.
But, when I add <em:updateURL>some_url</em:updateURL>
, the add-on doesn't work. I use Netbeans IDE with Foxbeans plugin for development, and when I run add-on project from this IDE, Firefox runs with this add-on switched off (and switching on disabled). When I compile the XPI and add it to Firefox (3.6.12), it says about version incompatibility and doesn't work either. Doesn't matter, if I use http or https in the updateURL.
If this tag is empty, like this: <em:updateURL></em:updateURL>
, everything works (but doesn't update itself, of course)
The solution was quite simple, though not obvious at a first glance.
In install.rdf <em:updateURL>
should be after <em:targetApplication>
, not before.
Hope this would help somebody, sometime.
这篇关于Firefox插件无法与标签< em:updateURL>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!