Javascript 我的Firefox扩展赢得了';安装

Javascript 我的Firefox扩展赢得了';安装,javascript,firefox,firefox-addon-sdk,Javascript,Firefox,Firefox Addon Sdk,我刚刚在我的Firefox扩展中设置好了一切。现在我需要将它安装到live Firefox中,我遇到了麻烦。我制作了.xpi文件,里面有我的清单。一切似乎都很顺利,我甚至看到了这个屏幕: 但在我点击安装并重新启动Firefox后,没有安装任何东西 以下是install.rdf: <?xml version="1.0"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http:

我刚刚在我的Firefox扩展中设置好了一切。现在我需要将它安装到live Firefox中,我遇到了麻烦。我制作了.xpi文件,里面有我的清单。一切似乎都很顺利,我甚至看到了这个屏幕:

但在我点击安装并重新启动Firefox后,没有安装任何东西

以下是install.rdf:

<?xml version="1.0"?>

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:em="http://www.mozilla.org/2004/em-rdf#">

  <Description about="urn:mozilla:install-manifest">
  <em:id>canoncheck@canoncheck.com</em:id>
    <em:version>1.0</em:version>

<!-- Target Application this extension can install into,
         with minimum and maximum supported versions. -->

<em:targetApplication>
    <Description>
      <!-- Firefox's UUID -->
      <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
      <em:minVersion>3.0.*</em:minVersion>
      <em:maxVersion>34.0.*</em:maxVersion>
    </Description>
  </em:targetApplication>

  <!-- Front End MetaData -->
  <!-- Extension Information -->
  <em:name>Canon Check</em:name>
  <em:description>Check for canonical links in the loaded page.</em:description>
  <em:creator>Jase Pellerin</em:creator>

  <!-- Front End Integration Hooks (used by Theme Manager)-->
    <em:internalName>canoncheck</em:internalName>
  </Description>

</RDF>

canoncheck@canoncheck.com
1
{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
3.0.*
34.0.*
佳能支票
检查加载页面中的规范链接。
贾斯佩林
佳能支票

知道是什么搞砸了吗?我想是上面的。我将使用此处的模板制作一个新的插件:

您的插件是否显示在“关于:插件”页面中?如果您的插件不支持您的firefox版本,firefox将给您一个错误,并且不会安装该插件。它不会出现在about:addons:c中。似乎也没有错误。我安装,它重新启动,然后它就不存在了!好的,您是否使用了
cfx run
??然后您将在输出控制台中看到问题啊,它在cfx中运行良好。可能与install.rdf有关?您是否检查过浏览器控制台的启动代码mains.js中是否存在错误?