2008-11-10 67 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> 
相關問題