![]() The Firefox main process will search for new updates when the next update interval is reached.The updater binary will shutdown, and signal the Firefox main process.The updater binary will write "applied" to the manifest file.The updater binary will also write to the manifest file "failed: n" where n is the reason code. Any errors happening during this phase (such as running out of disk space or failing to write to disk) will be handled by the updater process by removing the FIREFOX_NEW directory and aborting. The updater binary will go ahead and apply the update to the FIREFOX_NEW directory using the existing installation directory as the base.The existing installation will be copied into FIREFOX_NEW.If this directory exists, it will be removed.The updater binary checks to see if there is an existing FIREFOX_NEW directory.If this file exists, and it contains "applied", its content is changed to "applying".The updater binary checks to see if there is an existing manifest file.The manifest file is the "update.status" file used by the updater service. ![]() If it's installed in a non-flat directory structure (like /usr/bin for example), the details of where FIREFOX_NEW will be is TBD. On Linux, if Firefox is installed to a flat directory like "/path/to/firefox", FIREFOX_NEW will be "/path/to/firefox/updated". ![]() 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", FIREFOX_NEW will be "/path/to/Firefox.app/Updated.app".On Windows, if Firefox is installed to "C:\path\to\Mozilla Firefox", FIREFOX_NEW will be "C:\path\to\Mozilla Firefox\updated".The target of the update will be known FIREFOX_NEW from now on.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.Otherwise, we go ahead and download the update (as a complete/partial MAR file).If the user needs to prompted for some reason, we show that prompt at the normal time.The process will start by Firefox checking for an update in the foreground or background.They are only mentioned here for completeness. Please note that the parts in italics explain what currently happens, and those parts are not changed under this proposal. Here is a proposal for how background updates will be implemented. Any of the other projects falling under the "silent update" umbrella.Downloading and/or apply update while Firefox is not running. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |