Anchor for Firefox extensions?
I have a Firefox addon available for my website. I add the download link of the addon to a simple , but when an user cli开发者_如何学Cck it, it prompts him to download the .XPI file of the addon - Is there any way so I can pop-up the normal EXTENSION INSTALL window for my addon? Is there any special thing to do that or this is available only in addons.mozilla.org?
You can use the InstallTrigger object. Also, you should be using application/x-xpinstall
MIME type for your extension file, this will trigger installation even if InstallTrigger
isn't used (e.g. JavaScript disabled).
精彩评论