+556
−474
File changed.
Preview size limit exceeded, changes collapsed.
Loading
This ended up being a nearly total rewrite of AppUpdater, but I think that the changes are worth it. The flow is much more linear which makes it easier to follow and reason about. The API is made much more formal by making most methods and members private. Many potential race conditions have been removed. Many more potential errors thrown can now be caught by the try/catch that wraps `AppUpdater.check`, causing those errors to show the "Internal Error" message rather than causing the update interface to just freeze. Cancelling an in-progress update check works more reliably. This patch does not change AppUpdater consumers to accomodate these changes. That will come later in the patch stack. Differential Revision: https://phabricator.services.mozilla.com/D159298
File changed.
Preview size limit exceeded, changes collapsed.