I am trying to work out how to best implement direct firefox-addon installation from my website. Besides simply prompting the user to install the addon, I would also want to get the result of the user action (accepts installation or cancels it).
Research on google generally points to the use of InstallTrigger.install()
, which works fine except that there is no functional callback that I can use to know the result of the user's action.
Though InstallTrigger.install()
does accept a callback, the callback is not fired unless the current viewing page is a whitelisted domain (e.g. AMO):
So I am wondering:
- Is there any alternative way to get the result of the addon installation, and
- Does mozilla have anyway to accept a domain into their default addon installation whitelist.
Thanks a lot!