2 addons using compose.onBeforeSend will not both work
Categories
(Thunderbird :: Add-Ons: Extensions API, defect)
Tracking
(thunderbird76 fixed)
Tracking | Status | |
---|---|---|
thunderbird76 | --- | fixed |
People
(Reporter: dave, Assigned: darktrojan)
Details
Attachments
(1 file)
17.76 KB,
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Steps to reproduce:
If two addons use compose.onBeforeSend then the first one to respond with {"cancel":false} will send the email. The response from the second one appears to be ignored.
The test I did to demonstrate this is described here:
https://thunderbird.topicbox.com/groups/addons/T8a984c3fb306a535
Addons such as my Limit non-BCC recipients, which may require interaction, are likely not to work if another addon does something quick, such as add a recipient.
Comment 1•5 years ago
|
||
Resetting severity to default of --
.
Assignee | ||
Comment 2•5 years ago
|
||
Thanks for filing a bug I was already working on! Save me doing it :-)
Assignee | ||
Comment 3•5 years ago
|
||
We have to fire each listener in sequence. I knew that but clearly I'd forgotten about it somewhere along the line.
Comment 4•5 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/bf38a1ba950e
Fire compose.onBeforeSend sequentially instead of all at once. r=mkmelin DONTBUILD
Assignee | ||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Comment 7•5 years ago
|
||
In order to get this patch to apply to comm-beta I also had to take Bug 1619057 as the changes overlap. Bug 1629023 might be needed as well.
Comment 8•5 years ago
|
||
bugherder uplift |
Thunderbird 76.0b3:
https://hg.mozilla.org/releases/comm-beta/rev/9c50eec1c6cd
Updated•5 years ago
|
Description
•