Closed Bug 1824346 Opened 2 years ago Closed 2 years ago

addons actor allows uninstallation of any add-on, not just the temporarily loaded ones

Categories

(WebExtensions :: Developer Tools, task, P3)

task

Tracking

(firefox113 fixed)

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: robwu, Assigned: willdurand)

References

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

The uninstallAddon method of the addons actor was introduced in bug 1823457 to support the removal of temporarily loaded extensions. The implementation is quite generic, and allows uninstallation of any extension: https://searchfox.org/mozilla-central/rev/6fc2f6d5335fb6f70f780b5fea5ed77b0719c3b5/devtools/server/actors/addon/addons.js#70-72

The logic above does not check for the presence of AddonManager.PERM_CAN_UNINSTALL, and consequently the remote debugging protocol could be used to uninstall an add-on despite enterprise policy settings.

Since we don't need to support uninstallation of any add-on, we should adjust the check to only permit the uninstallation of temporarily installed extensions. If we ever need to expand it, we should at least check for PERM_CAN_UNINSTALL prior to calling addon.uninstall().

Set release status flags based on info from the regressing bug 1823457

:willdurand, since you are the author of the regressor, bug 1823457, could you take a look? Also, could you set the severity field?

For more information, please visit auto_nag documentation.

Severity: -- → N/A
Type: task → defect
Flags: needinfo?(wdurand)
Priority: -- → P3
No longer regressed by: 1823457
Type: task → defect
Whiteboard: [addons-jira]
Assignee: nobody → wdurand
Status: NEW → ASSIGNED
Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a1b3b4fb4c40 Only uninstall temporary add-ons. r=jdescottes,robwu,devtools-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: