Locked extension added by policy is able to be removed
Categories
(Toolkit :: Add-ons Manager, defect, P2)
Tracking
()
People
(Reporter: thetfordb, Assigned: mixedpuppy)
References
Details
Attachments
(3 files)
2.33 KB,
application/octet-stream
|
Details | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
2.21 KB,
patch
|
RyanVM
:
approval-mozilla-esr78+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
I created a configuration profile using the policy templates here: https://github.com/mozilla/policy-templates/blob/master/mac/org.mozilla.firefox.plist
I added an extension to the Extension -> Install array and then added the identifier to the Extension -> Locked array. I assigned the configuration profile to my test Mac.
On my test Mac, I removed the existing Firefox profile. I launched Firefox. The extension installed and was "locked". I went to manage add-ons. I clicked the "..." button on the right of the Enabled extension list for my particular extension. A selection list appears with "Can't be removed [Why?]", "Report", and "Manage". If I click to the right of the "Why" text on the "Can't be removed [Why?]" line, the addon is uninstalled.
Actual results:
The user is prompted to confirm uninstalling the addon and then the addon is uninstalled.
Expected results:
No uninstall action should be performed since the addon/extension is "locked" by policy. If I click anywhere else on that link, no action is performed. Clicking why takes me to the KB article for "Cannot remove an add-on (extension or theme)" as it should.
I don't know why clicking to the right of the word "Why?" performs an uninstall.
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•4 years ago
|
||
Shane, this sounds like a regression from bug 1603227?
Assignee | ||
Comment 3•4 years ago
|
||
Well, it seems like two issues here.
The first is a UI issue, clicking to the right of "why" is initiating an uninstall. bug 1603227 wouldn't have had any effect on UI.
The second issue is that despite the UI being reachable, ISTM should not allow an actual uninstall. Enterprise policies are checked after[1] those changes from bug 1603227, thus overriding them. Either the policy is not set correctly, or there is a problem checking the uninstall permission when uninstalling is initiated. I'll have to dig into that further.
Comment 4•4 years ago
|
||
I've managed to reproduce the issue on MacOS 10.14 with the latest Firefox Release 80.0.1 (20200831163820) and Beta 81.0b7 (20200906164749) using the configuration profile from https://gist.github.com/paulgalow/9ffc4840586a3a9b47ec4c068de96928 and only changing Extension -> Install array to have the latest extension version. With the provided steps and with the made configuration profile, the extension is not installing on latest Nightly 82.0a1 (20200907094115) and I am not sure if I can change something in the configuration profile to make that happen.
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
|
||
This is an issue original with the work on supporting the remove action in the html rewrite, bug 1580962. Some part of the remove element is clickable even though disabled.
Patch will ensure that the addon has uninstall permission prior to removing, that will catch any instance like this.
Manually tested with the policy:
{
"policies": {
"Extensions": {
"Locked": ["uBlock0@raymondhill.net"]
}
}
}
Assignee | ||
Comment 7•4 years ago
|
||
Updated•4 years ago
|
Comment 9•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Comment 10•4 years ago
|
||
[Approval Request Comment]
If this is not a sec:{high,crit} bug, please state case for ESR consideration: Fix specifically around policy, consistency with 90
User impact if declined: Can uninstall addon even if policy says no.
Fix Landed on Version: 90
Risk to taking this patch (and alternatives if risky): Low (has test).
See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.
Comment 11•4 years ago
|
||
Comment on attachment 9225013 [details] [diff] [review]
Patch for ESR 78
Approved for 78.12esr.
Comment 12•4 years ago
|
||
bugherder uplift |
Description
•