Closed Bug 1824594 Opened 2 years ago Closed 2 years ago

Setting ComposeDetails.customHeaders purges other non-custom headers

Categories

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

Thunderbird 102
defect

Tracking

(thunderbird_esr102 wontfix, thunderbird113 wontfix)

RESOLVED FIXED
113 Branch
Tracking Status
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.

Sorry, I got that wrong.

See Also: → 195716
Assignee: nobody → john
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Thanks for reporting this. Submitted a fix.

Target Milestone: --- → 113 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/a91e54e0abeb
ComposeDetails.customHeaders must not purge other non-custom headers. r=leftmostcat

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

Attachment

General

Created:
Updated:
Size: