This is the first time I am trying to self host a mozilla addon (or web extension). I have already generated signed xpi file using web-ext tool. Can someone please share the next steps to host the web extension so that users can directly install web extension from my site ?
You need to create an HTML page and installation can only be triggered with user’s manual click. Opening the link of xpi file directly does not allow users to install the addon.
So I created a simple HTML page like this:
<html>
<head></head>
<body>
<center>Install Requestly on Firefox</center>
<a href="https://dl.dropboxusercontent.com/u/71743966/requestly/firefox/requestly-4.1.6-an%2Bfx.xpi"> Click here on download </a>
</body>
</html>
After hosting this page and clicking on download link actually installed the addon in Firefox v49.
Do you have a web page where you will offer the extension for download?
As mentioned earlier in this thread, you can add a link to the .xpi file on that page. For best results, your web server should send the file with the application/x-xpinstall content type.
Hi @bonniesimon, you can use these instructions to get your add-on signed for self-distribution. Once your add-on has been signed, you can download the .xpi file from your Developer Hub on addons.mozilla.org. You can install it for just yourself, or you can make the .xpi downloadable from a web property like Github or Wordpress.