Closed Bug 2071109 Opened 2 months ago Closed 2 months ago

Port bug 2068752: Uninstall add-ons listed in Extensions.Uninstall at every startup

Categories

(Enterprise Products :: Thunderbird, task)

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jreitano, Assigned: gerard-majax)

References

(Blocks 1 open bug)

Details

https://github.com/mozilla/enterprise-firefox/pull/1454 (Bug 2068752) changes the Extensions policy in browser/components/enterprisepolicies/Policies.sys.mjs. The Uninstall list is now reconciled against installed add-ons at every startup, the uninstall logic lives in a new uninstallListedAddons helper in toolkit/components/enterprisepolicies/PoliciesHelpers.sys.mjs alongside a companion isRunOnceModificationApplied, and the Install step chains on the uninstall step explicitly. browser_policy_extensions.js no longer resets the run-once state before its uninstall task.

Thunderbird's copy of the policy in comm/mail/components/enterprisepolicies/Policies.sys.mjs still has the previous code, so once the PR merges into enterprise-main, browser_policies_differences.js will report Extensions as differing on the Thunderbird Enterprise build.

Note for the port: the two new helpers exist only in the enterprise-firefox toolkit until the change is upstreamed to mozilla-central, which will get its own bug. The Thunderbird change therefore needs to be gated on MOZ_ENTERPRISE or wait for the upstream landing, otherwise the policy breaks on Thunderbird built against mozilla-central.

The change this was going to port is not landing. PR 1454 is closed unmerged — Bug 2070529 landed and the policy engine now rejects Extensions on Firefox Enterprise builds, so the handler never runs there and the fix could not be exercised. Bug 2068752 is resolved WONTFIX.

Leaving it to you whether to close. One reason not to: Extensions is still supported in mozilla-central, and the every-startup reconciliation has been filed there separately (Bug 2071356). If that lands, Thunderbird's copy would still need the same port so this could be repointed to depend on it instead.

Flags: needinfo?(lissyx+mozillians)

(In reply to John Reitano from comment #1)

The change this was going to port is not landing. PR 1454 is closed unmerged — Bug 2070529 landed and the policy engine now rejects Extensions on Firefox Enterprise builds, so the handler never runs there and the fix could not be exercised. Bug 2068752 is resolved WONTFIX.

Leaving it to you whether to close. One reason not to: Extensions is still supported in mozilla-central, and the every-startup reconciliation has been filed there separately (Bug 2071356). If that lands, Thunderbird's copy would still need the same port so this could be repointed to depend on it instead.

If we decided that Extensions are rejected on Firefox Enterprise, the same will apply to Thunderbird Enterprise.

Status: NEW → RESOLVED
Closed: 2 months ago
Flags: needinfo?(lissyx+mozillians)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.