Ensure Background Task is scheduled if and only if it ought to be scheduled
Categories
(Toolkit :: Application Update, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | verified |
People
(Reporter: bytesized, Assigned: bytesized)
References
Details
Attachments
(2 files)
Currently, we don't check if the task has been scheduled, we rely on a profile-level pref to tell us if we scheduled the task. But this can sometimes be wrong (for example, if Firefox was uninstalled and the task removed). We should check if the task has been scheduled to make sure that our internal state matches that of the task scheduler.
Also, if you find yourself in that situation, toggling the task off and on doesn't re-enable the task. When the task isn't in the expected state, interacting with it improperly throws an exception and the cached prefs don't get updated properly. So we should make sure that our solution addresses this issue as well.
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
Depends on D111014
Pushed by ksteuber@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b20d80f3ba82 Add interface to allow task existence to be queried r=nalexander https://hg.mozilla.org/integration/autoland/rev/546270d901db Ensure Background Task is scheduled if and only if it ought to be scheduled r=nalexander,application-update-reviewers
Comment 4•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b20d80f3ba82
https://hg.mozilla.org/mozilla-central/rev/546270d901db
Comment 5•3 years ago
|
||
Verified fixed on Windows 10 and Windows 7 with the latest Nightly (2021-04-09)
Description
•