Closed Bug 1675850 Opened 4 years ago Closed 3 years ago

Add `MOZ_BACKGROUNDTASKS` build flag for conditionally building background task infrastructure

Categories

(Toolkit :: Application Update, task)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: nalexander, Assigned: nalexander)

References

Details

Attachments

(1 file, 1 obsolete file)

This is just legwork for Bug 1675848. We want to be able to land bits and pieces of the infrastructure for background tasks without having them build.

Assignee: nobody → nalexander
Status: NEW → ASSIGNED

This adds a build flag (defaulting to on in Nightly builds), an
AppConstants definition, and a tiny bit of scaffolding for running in
"background tasks" mode -- just enough to write some tests in future
tickets.

Attachment #9186778 - Attachment description: Bug 1675850: Add MOZ_BACKGROUNDTASKS build flag and scaffolding. r?#build,mossop → Bug 1675850 - Pre: Add MOZ_BACKGROUNDTASKS build flag and scaffolding. r?#build

This lays the foundation for managing an active background task. A
singleton, exposed as an XPCOM service, owns the task name and lives
for the life of the application.

This will be wired into the application startup path in future
commits. It's separated to allow the changes to category registration
to come early in the commit sequence.

Depends on D96481

Attachment #9186778 - Attachment description: Bug 1675850 - Pre: Add MOZ_BACKGROUNDTASKS build flag and scaffolding. r?#build → Bug 1675850 - Add MOZ_BACKGROUNDTASKS flag, {nsI}BackgroundTasks IDL and class. r?Mossop!,mhentges!
Attachment #9188711 - Attachment is obsolete: true

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:nalexander, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(nalexander)
Pushed by nalexander@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a53b4ebb924f
Add MOZ_BACKGROUNDTASKS flag, {nsI}BackgroundTasks IDL and class. r=mossop,firefox-build-system-reviewers,mhentges
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

Clearing NI 'cuz I finally got this stack landed!

Flags: needinfo?(nalexander)
Blocks: 1703886
Blocks: 1703909
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: