2008-11-10 35 views

回答

3

这是official tutorial,它只处理签署XPI。我不相信可以自动安装插件,这是出于相当明显的安全原因。

+0

Link不工作。 – Leonard 2008-11-10 06:37:56

+0

我修复了损坏的链接。 – 2008-11-10 22:11:26

4

签名XPI将删除警告消息,但仍然没有自动安装扩展或插件的方式。

我已经在XPI Format上写了几篇文章,并且使用java命令行工具编写了signing的howto。

该工具XPISigner大大简化了过程,并可集成到构建系统中。

1

对我的作品在FF 2.0.3:

<script type="application/javascript"> 
<!-- 
function install (aEvent) 
{ 
    var params = { 
    "Foo": { URL: aEvent.target.href, 
      IconURL: aEvent.target.getAttribute("iconURL"), 
      Hash: aEvent.target.getAttribute("hash"), 
      toString: function() { return this.URL; } 
    } 
    }; 
    InstallTrigger.install(params); 

    return false; 
} 
--> 
</script> 

<a href="http://www.example.com/foo.xpi" 
    iconURL="http://www.example.com/foo.png" 
    hash="sha1:28857e60d043447c5f4550853f2d40770b326a13" 
    onclick="return install(event);">Install Extension!</a> 
相关问题