Closed Bug 1832834 Opened 2 years ago Closed 2 years ago

Make `--backgroundtask backgroundupdate` work with unelevated installations [SERVICE_REGISTRY_KEY_MISSING]

Categories

(Toolkit :: Application Update, enhancement, P3)

Desktop
Windows
enhancement

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: mpohle, Assigned: mpohle)

References

Details

Attachments

(3 files, 1 obsolete file)

The initial background update landing does not schedule the background update task when a permission elevation is denied during the setup and aborts with a SERVICE_REGISTRY_KEY_MISSING error.

With this bug we are going to land a change to allow background update for these users, which is going to require unprecedented tests to ensure that this works and keeps working reliably.

Assignee: nobody → mpohle
Severity: -- → S3
Priority: -- → P3

I don't understand how this is meant to work. Are we going to use the Service even though the registry key is missing? Are we going to show a UAC prompt from a background task?

Flags: needinfo?(mpohle)

The idea is, that we can already upgrade some and perhaps most installations without the need for a UAC prompt, e.g. because these were installed under %LOCALAPPDATA%\Mozilla Firefox. The implementation will somehow check if we can write to the target location and if that is the case, it is going to behave as if you had set app.update.background.force.

Flags: needinfo?(mpohle)

This feature allows to schedule and install background updates even
when the Mozilla Maintenance Service is not configured for an
installation.

Attachment #9335448 - Attachment description: WIP: Bug 1832834 - Added nimbus experiment to allow background updates in unelevated installations, r=nalexander → Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=nalexander
Attachment #9335448 - Attachment description: Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=nalexander → Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=bytesized
Depends on: 1838390
Attachment #9335448 - Attachment description: Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=bytesized → Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=nalexander
Attachment #9335448 - Attachment description: Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=nalexander → [WIP] Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=nalexander
Attachment #9335448 - Attachment description: [WIP] Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=nalexander → Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=nalexander
Attachment #9335448 - Attachment description: Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=nalexander → Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=bytesized
Attachment #9335448 - Attachment description: Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=bytesized → Bug 1832834 - Add Nimbus feature to allow background updates for unelevated installations. r=bytesized,nalexander
Pushed by mpohle@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2aed50c0b2e6 Add Nimbus feature to allow background updates for unelevated installations. r=nalexander,application-update-reviewers,bytesized
Regressions: 1843643
Pushed by mpohle@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bbea40f618ed Add Nimbus feature to allow background updates for unelevated installations. r=nalexander,application-update-reviewers,bytesized
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
Flags: needinfo?(mpohle)

changed:

allowUpdatesForUnelevatedInstallions
allowUpdatesForUnelevatedInstallations

local tests passed, manual test passed, treeherder run here

Pushed by nalexander@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ac98a0d8a999 Fixed typo in experiment name, r=nalexander,application-update-reviewers
Blocks: 1852093
Attachment #9336582 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: