Closed Bug 1691495 Opened 3 years ago Closed 3 years ago

Add policy/policies for `app.update.background.enabled`

Categories

(Toolkit :: Application Update, task)

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: nalexander, Assigned: bytesized)

References

Details

Attachments

(3 files)

The per-installation pref app.update.auto is controlled by AppAutoUpdate. We need a pref for app.update.background.enabled.

This is essentially Bug 1657533 but for app.update.background.enabled.

Severity: -- → N/A

I'll be working on this bug. I just clarified with :nalexander that the pref/policy won't initially be hooked up to anything. So I'll make sure to write a test, which will be its only consumer for now.

Assignee: nobody → ksteuber
Status: NEW → ASSIGNED

Also moves appUpdateSettingIsLocked into UpdateUtils so it can be used by consumers.

Depends on D107921

Note that I made this a browser test rather than an xpcshell test, despite not using any particular browser functionality. I made this choice because I expect to expand this test a bit later, adding checking for preferences UI, much like the browser_policy_app_auto_update.js test in the same directory does.

Depends on D107922

How is the background updater going to read this?

The newest iteration of the background update agent is headless Firefox, so it will read it the exact same way that the included test reads it.

Pushed by ksteuber@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5a5ce6145f08
Add an enterprise policy to disable background application update r=nalexander,mkaply,fluent-reviewers
https://hg.mozilla.org/integration/autoland/rev/1f6f64fb9699
Add per-installation pref: app.update.background.enabled r=nalexander
https://hg.mozilla.org/integration/autoland/rev/01c65f9b8d24
Add tests for app.update.background.enabled and its policy r=nalexander,mkaply
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: