Setting ComposeDetails.customHeaders purges other non-custom headers
Categories
(Thunderbird :: Add-Ons: Extensions API, defect)
Tracking
(thunderbird_esr102 wontfix, thunderbird113 wontfix)
People
(Reporter: frederick888, Assigned: TbSync)
References
Details
Attachments
(1 file)
Steps to reproduce:
Reply to an email thread, while the compose window is open, save it as a draft.
View the draft's source, can see headers like Content-Language, References, In-Reply-To.
let composeDetails = await messenger.compose.getComposeDetails(tabId)
composeDetails.customHeaders
// shows Array []
await messenger.compose.setComposeDetails(tabId, composeDetails)
Save the email again, and view the new draft's source.
Actual results:
Content-Language, References, In-Reply-To are gone.
According to the original report I got at https://github.com/Frederick888/external-editor-revived/issues/110, it doesn't have to go through the Save as Draft step actually, I just haven't found a place to experiment this.
Expected results:
Non-custom headers are not affected by ComposeDetails.customHeaders.
Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Thanks for reporting this. Submitted a fix.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/a91e54e0abeb
ComposeDetails.customHeaders must not purge other non-custom headers. r=leftmostcat
Assignee | ||
Updated•1 years ago
|
Description
•