Closed Bug 1621873 Opened 4 years ago Closed 4 years ago

Enforce mailTabs event/function permissions with the schema, not the code

Categories

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

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 76.0

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

Attachments

(1 file)

When I first wrote the mailTabs API I didn't know that I could enforce permissions for an individual event using the schema, so I did it in the code instead. There's no real downside to this except that when the extension does not have permission it can still try to listen to the event, only for an exception to be thrown. Also documentation is easier when things are in the schema instead of the code.

Summary: Enforce mailTabs event permissions with the schema, not the code → Enforce mailTabs event/function permissions with the schema, not the code
Attachment #9132800 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9132800 [details] [diff] [review]
1621873-mailtabs-permissions-1.diff

Review of attachment 9132800 [details] [diff] [review]:
-----------------------------------------------------------------

Looks like an improvement! r=mkmelin
Attachment #9132800 - Flags: review?(mkmelin+mozilla) → review+

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/0ab55e9b87ee
Enforce mailTabs event/function permissions with the schema, not the code. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 76.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: