Hi,
I’m trying to add a direct install button on my add-on homepage, like ZenHub (https://www.zenhub.io/) does. (ZenHub’s install doesn’t seem to finish correctly as well.)
I found the following documentation and followed its instructions:
https://developer.mozilla.org/en-US/docs/Installing_Extensions_and_Themes_From_Web_Pages
But the installation using InstallTrigger.install()
seems always being blocked by Firefox (now I know it is a security feature). The real problem is that after user manually permits the install and when the install completes, the callback is never called (so I won’t know if it ends well or not). After some digging a found here:
https://developer.mozilla.org/en-US/docs/Web/API/InstallTrigger/install
It says:
In Firefox 3 the callback is no longer invoked unless the website performing the installation is whitelisted.
Does this means that there’s no way to tell if the installation is succeeded, failed or blocked after the process ends for websites outside the whitelist?
–
GU Yiling (Justineo)
Baidu Inc.