Closed Bug 1705281 Opened 5 years ago Closed 5 years ago

Remove scheduled task(s) in first run (including backgroundupdate task)

Categories

(Toolkit :: Application Update, task)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: nalexander, Assigned: nalexander)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Spinning out part of Bug 1698593. We've run into complications removing background tasks in the uninstaller, but part of the patch series seems fine -- removing left over background tasks in the first run invocation. This ticket will land that while we hammer out the uninstaller bits.

No longer blocks: 1687777
Depends on: 1687777

It makes sense to accommodate exceptions in deleteAllTasks: since
we're trying to clean up, do as much as possible. It's possible that
we should catch, store, and re-throw any exception rather than trying
to delete a second time, but it's not clear how that re-thrown
exception will present in the browser console, etc.

We special case the WDBA task in the task scheduler implementation
rather than having consumers accommodate it because the task is the
outlier that behaves differently from the rest of the task scheduler,
and because we don't anticipate additional outlier tasks in the
future.

Depends on D110784

This is best effort. For example, we can't handle the situation where
multiple OS-level users have scheduled tasks from a previous
installation.

Attachment #9215979 - Attachment description: Bug 1698593 - Pre: Use EXIT_CODE in BackgroundTask_{success,failure}. r?#application-update-reviewers → Bug 1705281 - Pre: Use EXIT_CODE in BackgroundTask_{success,failure}. r?#application-update-reviewers
Pushed by nalexander@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/555c08322816 Pre: Use EXIT_CODE in BackgroundTask_{success,failure}. r=application-update-reviewers,bytesized https://hg.mozilla.org/integration/autoland/rev/62bd2c72a288 Part 1: Accommodate exceptions in `deleteAllTasks`; don't try to delete WDBA task. r=agashlin https://hg.mozilla.org/integration/autoland/rev/8ce8382dafb7 Part 2: Remove any scheduled task(s) on first startup. r=agashlin,mconley
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: