Closed Bug 1672267 Opened 4 years ago Closed 4 years ago

Change the updater's downloadUpdate functions to return success rather than update state

Categories

(Toolkit :: Application Update, task)

task

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: bytesized, Assigned: bytesized)

References

Details

Attachments

(2 files)

Currently, AUS.downloadUpdate and Downloader.downloadUpdate return the updater state. However, this isn't fully compatible with the multiple updates per Firefox session feature that I'm working on (Bug 353804). If the current state is STATE_PENDING, it will still be STATE_PENDING after downloadUpdate is called, whether it succeeds or fails. Therefore, I think it makes more sense to just return a boolean success value.

The only callers that use the return value just compare it to STATE_NONE to check for failure, so this mechanism will serve their purposes just fine.

While making other changes, I took a second look at some code I wrote in Bug 1668096, and found a few little mistakes. This patch fixes them up.

Depends on D94191

Pushed by ksteuber@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6172a10e7252 Change downloadUpdate to return a boolean success value rather than updater state r=mhowell https://hg.mozilla.org/integration/autoland/rev/ddedbce9ad9f Fix 2 mistakes made in Bug 1668096 r=mhowell
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: