Add an "action" API for the message display toolbar
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(thunderbird_esr6871+ fixed, thunderbird71 fixed)
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(2 files)
18.42 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
18.62 KB,
patch
|
darktrojan
:
review+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 2•4 years ago
|
||
You're the one that wanted it. :-P
It's about adding button[s] to the message header so the user can do things with the displayed mail. I actually have half a patch somewhere if I ever dig my way out from under the large bugs I'm working on.
Assignee | ||
Comment 3•4 years ago
|
||
It turns out I did have half a patch, but the other half wasn't so easy.
Comment 4•4 years ago
|
||
Comment on attachment 9094105 [details] [diff] [review] 1531597-message-display-action-1.diff Review of attachment 9094105 [details] [diff] [review]: ----------------------------------------------------------------- ::: mail/components/extensions/test/browser/browser_ext_messageDisplayAction.js @@ +137,5 @@ > + let messageWindowPromise = BrowserTestUtils.domWindowOpened(); > + MsgOpenNewWindowForMessage(); > + let messageWindow = await messageWindowPromise; > + await new Promise(resolve => messageWindow.setTimeout(resolve)); > + await new Promise(resolve => messageWindow.setTimeout(resolve)); what's up with the double timeouts?
It would be nice if it would not just allow adding new buttons, but also extending the "More" button. Currently I don't add a separate button for my add-on, but just add a few entries to this button.
Assignee | ||
Comment 6•4 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #4)
Comment on attachment 9094105 [details] [diff] [review]
what's up with the double timeouts?
I'm not sure, but it doesn't work otherwise. I assume there's something waiting to happen on the event loop, that causes something else to be added to the event loop.
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/0d126d5453bd
Add an API for the adding a button to the message display toolbar. r=mkmelin
Updated•4 years ago
|
Assignee | ||
Comment 8•4 years ago
|
||
Comment on attachment 9094105 [details] [diff] [review] 1531597-message-display-action-1.diff This slipped off my radar.
Assignee | ||
Comment 9•4 years ago
|
||
Comment on attachment 9094105 [details] [diff] [review] 1531597-message-display-action-1.diff Waaait a minute… this test doesn't pass on ESR.
Assignee | ||
Comment 10•4 years ago
|
||
Updated•4 years ago
|
Comment 11•4 years ago
|
||
TB 68.3 ESR:
https://hg.mozilla.org/releases/comm-esr68/rev/d401e2b789a4429cedc1b9549b252600b918932e
Description
•