Closed Bug 2067691 Opened 3 months ago Closed 12 days ago

Re-applying force_installed does not restore an extension that's pending uninstall

Categories

(Enterprise Products :: Firefox, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bsmth, Assigned: janika)

References

(Depends on 1 open bug)

Details

(Whiteboard: [ent-sprint:163])

Attachments

(1 external file)

ExtensionSettings treats an extension that's being removed by the user as "installed". Re-applying force_installed doesn't cancel the pending uninstall nor restarts the extension; it is only restored after Firefox restarts and finalizes the removal. This is only really visible in FxEnt because we can apply and un-apply policies quite quickly.

STR: See https://bugzilla.mozilla.org/show_bug.cgi?id=2056600#c7

Details:

  • uninstall(true) leaves the add-on in PENDING_UNINSTALL.
  • A pending-uninstall add-on is still returned by getAllAddons()
  • Re-applying force_installed leaves the add-on pending and the extension not running.

Restarting finalizes the uninstall, which is why the extension only returns after a restart.

Flags: needinfo?(jneuberger)
Assignee: nobody → jneuberger
Flags: needinfo?(jneuberger)
Whiteboard: [ent-sprint:163]

Authored by https://github.com/1rneh
https://github.com/mozilla/enterprise-firefox/commit/a20dc234a0708085a0d7777c8bb5fca1efeb0387
[enterprise-main] Merge pull request #1860 from 1rneh/bug-2067691-reapply-force-installed

(via GitHub webhook, authenticated as shared-secret)

Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Flags: qe-verify+
QA Contact: lburuian
Blocks: 2097554
Depends on: 2077067
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: