Closed Bug 1670822 Opened 4 years ago Closed 4 years ago

Extend the menus API to attachments in the compose window

Categories

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

enhancement

Tracking

(thunderbird_esr78 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
thunderbird_esr78 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

(Whiteboard: [TM:78.5.0])

Attachments

(3 files)

The menus API should cover a lot more menus. In this bug I'll add the context menu when clicking on attachments in the composition window, and do some refactoring to make adding more menus easier.

Adds a "compose_attachments" context to the API, and a list of the selected attachments when the menu is used.

This is complicated by the way attachments in APIs work, we have to capture the firing event in the child process and transform the attachments.

I should have done this from the outset, but didn't think it was important.

Depends on D93285

This test was originally only testing our additions to the standard menus API. I've heavily refactored it to make adding new tests easier.

Depends on D93286

Whiteboard: [TM:78.5.0]
Target Milestone: --- → 83 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/e0d1dc4a79f8
Add the composition window attachments menu to the menus API. r=mkmelin
https://hg.mozilla.org/comm-central/rev/a3cf6c7f396f
Add a size parameter to the API attachment representation. r=john.bieling
https://hg.mozilla.org/comm-central/rev/67b5bcc96b4d
Overhaul the test browser_ext_menus.js. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Comment on attachment 9181155 [details]
Bug 1670822 - Add the composition window attachments menu to the menus API. r?mkmelin

[Approval Request Comment]
User impact if declined: This is a useful integration point for extensions
Testing completed (on c-c, etc.): Landed in 83, been through a full beta cycle
Risk to taking this patch (and alternatives if risky): Not risky

(request is for all 3 patches)

Attachment #9181155 - Flags: approval-comm-esr78?

Comment on attachment 9181155 [details]
Bug 1670822 - Add the composition window attachments menu to the menus API. r?mkmelin

[Triage Comment]
Mailextension API updates.

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

Attachment

General

Created:
Updated:
Size: