Background Updates: Difference between revisions

Line 27: Line 27:
* Once the download is finished, Firefox launches the updater binary in the background with the UI display disabled.  Searching for new updates will be paused during this time.
* Once the download is finished, Firefox launches the updater binary in the background with the UI display disabled.  Searching for new updates will be paused during this time.
** The target of the update will be known <code>FIREFOX_NEW</code> from now on.
** The target of the update will be known <code>FIREFOX_NEW</code> from now on.
*** On Windows, if Firefox is installed to "C:\path\to\Mozilla Firefox", <code>FIREFOX_NEW</code> will be "C:\path\to\Mozilla Firefox.new".
*** On Windows, if Firefox is installed to "C:\path\to\Mozilla Firefox", <code>FIREFOX_NEW</code> will be "C:\path\to\Mozilla Firefox\updated".
*** On Mac, if Firefox is installed to "/path/to/Firefox.app", <code>FIREFOX_NEW</code> will be "/path/to/Firefox.app/Updated.app".  In other words, the updated version of Firefox will be installed as a bundle inside the existing Firefox bundle.
*** On Mac, if Firefox is installed to "/path/to/Firefox.app", <code>FIREFOX_NEW</code> will be "/path/to/Firefox.app/Updated.app".  In other words, the updated version of Firefox will be installed as a bundle inside the existing Firefox bundle.
*** On Linux, if Firefox is installed to a flat directory like "/path/to/firefox", <code>FIREFOX_NEW</code> will be "/path/to/firefox.new".  If it's installed in a non-flat directory structure (like /usr/bin for example), the details of where <code>FIREFOX_NEW</code> will be is TBD.
*** On Linux, if Firefox is installed to a flat directory like "/path/to/firefox", <code>FIREFOX_NEW</code> will be "/path/to/firefox/updated".  If it's installed in a non-flat directory structure (like /usr/bin for example), the details of where <code>FIREFOX_NEW</code> will be is TBD.
** The manifest file will be known as an empty file named "update.pending" located in the root of the existing Firefox installation.
** The manifest file will be known as an empty file named "update.pending" located in the root of the existing Firefox installation.
* The updater binary checks to see if there is an existing manifest file.
* The updater binary checks to see if there is an existing manifest file.
Confirmed users
657

edits