Closed Bug 1716937 Opened 3 years ago Closed 3 years ago

optional_permissions are granted without prompting the user

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

defect

Tracking

(thunderbird_esr78+ fixed, thunderbird89 wontfix, thunderbird90+ fixed)

RESOLVED FIXED
91 Branch
Tracking Status
thunderbird_esr78 + fixed
thunderbird89 --- wontfix
thunderbird90 + fixed

People

(Reporter: TbSync, Assigned: TbSync)

Details

Attachments

(2 files)

Attached file dynamicPermissions.xpi

If an add-on requests optional permissions, it should prompt the user to either grant or deny them. Thunderbird silently grants them.

STR:

  • install attached add-on (the add-on does not request any permissions)
  • click on the Request Permissions browser action button
  • observe a notification being popped, so the notifications permission has been granted
  • observe the JavaScript console where the "messagesMove" permission is shown to be granted

Firefox prompts as expected.

I do not know if the suggested fix is ok. Feedback is appreciated.

Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(geoff)
Assignee: nobody → john
Attachment #9228349 - Attachment description: WIP: Bug 1716937 - Fix missing check for optional permissions. r=mkmelin → Bug 1716937 - Fix missing check for optional permissions. r=mkmelin
Status: NEW → ASSIGNED
Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(geoff)

Comment on attachment 9228349 [details]
Bug 1716937 - Fix missing check for optional permissions. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
Without this fix, add-ons can silently request any permission.

Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky):

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
Without this fix, add-ons can silently request any permission.

Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky):

Attachment #9228349 - Flags: approval-comm-esr78?
Attachment #9228349 - Flags: approval-comm-beta?

justdave, this is wanted for 90.0b3.

Magnus, John posted in matrix "I do not think it is actively exploited. Given the fact, that I have not seen it for ATN add-ons, I would stick with the plan to skip it on ESR till 78.12 or 78.11.1 if any other reason comes to release that." ... Thus plan would remain to not do a 78.11.1 because of the small pool of uplifts https://mzl.la/31XnnSF - and bug 1682370 must wait to 78.12. Sound good?

Flags: needinfo?(mkmelin+mozilla)

Comment on attachment 9228349 [details]
Bug 1716937 - Fix missing check for optional permissions. r=mkmelin

[Triage Comment]
Approved for beta - based on the expectation that the patch will have been on nightly for several days by the time we release 90.0b3

Attachment #9228349 - Flags: approval-comm-beta? → approval-comm-beta+

Sounds good.

Flags: needinfo?(mkmelin+mozilla)
Target Milestone: --- → 91 Branch
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Comment on attachment 9228349 [details]
Bug 1716937 - Fix missing check for optional permissions. r=mkmelin

[Triage Comment]
Approved for esr78

Attachment #9228349 - Flags: approval-comm-esr78? → approval-comm-esr78+
Group: mail-core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: