Firefox/Projects/Improve Plugin Find and Install: Difference between revisions

Line 19: Line 19:


When an install is not available Firefox will update the notification bar to say as much.
When an install is not available Firefox will update the notification bar to say as much.
== Installation Steps ==
When the pfs gives us a result for a mimetype search and the user agrees to the install Firefox will perform the following steps:
If there is an <code>xpi_location</code> specified then Firefox will attempt to install that file as a regular extension.
If there is an <code>installer_location</code> specified then Firefox will attempt to run that as a standard executable.
In both of the previous cases the location must either be on a https server or a hash must be given (as <code>xpi_hash</code> or <code>installer_hash</code>). After the executable has completed or the xpi install is finished if the property <code>needs_restart</code> is true then the user will be asked to restart Firefox. Otherwise the webpage that triggered the search will be reloaded.
If neither <code>xpi_location</code> or <code>installer_location</code> is present then Firefox will simply open the page in the <code>url</code> property.


= Bugs =
= Bugs =
* {{bug|430853}} - Improve PFS user experience
* {{bug|430853}} - Improve PFS user experience
* [https://wiki.mozilla.org/PFS2 PFS2 JSON]
* [https://wiki.mozilla.org/PFS2 PFS2 JSON]
canmove, Confirmed users
1,567

edits