Pages

Showing posts with label silent updates. Show all posts
Showing posts with label silent updates. Show all posts

Wednesday, November 16, 2011

How Mozilla Intends To Speed Up Firefox’s Update Process

We do know at this point in time that Mozilla is investigating means to update Firefox more effectively. Back in October we revealed that Mozilla was planning to add a silent update process to the browser to streamline the process and make it more comfortable and unobtrusive. Firefox engineer Ehsan Akhgar is now discussing another method on the Future of Firefox blog.

He first describes how Firefox is currently applying updates to the browser. Updates are downloaded into a special directory during runtime. The browser on next start up will check for updates in that directory and if any are found, will apply them to the browser. This process is visualized to the user with the dreaded Firefox Update: Firefox is installing your updates and will start in a few moments message.

firefox update

The updater restarts the browser after the update as been completed.

The new idea is not fundamentally different. Updates will be applied to a copy of the browser files in the background while the browser is running. When the user restarts the browser the updated version is copied over the old version of the browser, a process that is noticeably faster (as there are no prompts and copying is faster than applying those updates during browser start).

Now, the reason that this approach fixes the problem is that swapping the directories, unlike the actual process of applying the update, is really fast. We are effectively moving the cost of applying the update to right after the update has been downloaded while the browser is running. This leaves only the really fast copy operation to be performed the next time that the browser starts up.

A long document is available here that details the background updates process.

  • Firefox finds an update
  • The update is downloaded
  • Updater is launched in the background with the UI disabled
  • The existing installation will be copied to /firefox/updated/
  • The patches are applied to the copied version of Firefox
  • Update will be aborted if errors are encountered, e.g. read write errors, running out of disk space

What about changes that you make to the browser in that time? What about add-ons that you install or configuration changes? Those in theory should not be a issue as they are stored in the profile directory and not in the Firefox directory on the system.

I can still see issues here, like high cpu, ram or disk usage when the updates are applied.

What’s your take on the new updating proposal?


© Martin Brinkmann for gHacks Technology News | Latest Tech News, Software And Tutorials, 2011. | Permalink |
Add to del.icio.us, digg, facebook, reddit, twitter
Post tags: , , ,



Tuesday, October 4, 2011

Mozilla Talks Silent Updates, Plans Firefox Service

One of the issues that I hear over and over again when I talk with other Firefox users about the rapid release process is that users are tired of updating the browser every six weeks, and especially so if the update turns out to be another “under-the-hood” update where no changes can be spotted right away. Another common complaint is add-on compatibility, and here in particular the problem that add-ons may be considered incompatible by the web browser whenever a new version of it gets released by Mozilla.

Brian Bondy addressed one of the issues in a post entitled “Mozilla Firefox and silent updates” on his personal blog. In it he mentions that Windows’ User Account Control is a minor annoyance for Firefox users considering that the prompt will be displayed whenever the web browser is updated.

His plan is to find a way to bypass UAC prompts during updates after it has become clear that the user has enough permissions on the system to install and update the web browser.

Mozilla is currently experimenting with a Windows service approach. According to Brian, the Mozilla Application Updater service would be an “optional component” that users of the browser could install to automate the “software update process better”.

mozilla application updater

Those of you who follow the development of the Chrome browser may now think that this is exactly what Google is doing to update their web browser. And while both techniques have similarities on first glance, there are fundamental differences under the hood. The Firefox service for one is an optional component which Firefox users can uninstall or disable at any time. Firefox will receive updates in the future even with the service uninstalled, stopped or disables. The browser will simply switch to the old way of updating.

Mozilla tries to tackle the frequent update fatigue issue from other angles as well. The organization plans to make add-ons default to compatible during updates in the first quarter of 2012. This basically means that Firefox will no longer assume that add-ons do not work with an updated version of the browser. The benefit here is that fewer users will see the update prompt. Firefox for some time now downloads new versions of the web browser in the background and will install them as well unless add-ons are found to be incompatible. This can be changed under Firefox Options > Advanced Update.

firefox automatic update

Other methods include showing the What’s New page less frequently, increasing the time it takes before users receive notifications that an update has been downloaded and needs to be installed and to apply updates on shutdown.

If you read the comments under Brian’s post you will notice that nothing’s set into stone yet. The basic idea behind all proposals and plans is to make the updating process more comfortable to the user.

What’s your take on the development? Would you install a Firefox service on Windows for the updating of the browser?


© Martin Brinkmann for gHacks Technology News | Latest Tech News, Software And Tutorials, 2011. | Permalink |
Add to del.icio.us, digg, facebook, reddit, twitter
Post tags: , , , , ,