Closed Bug 1846885 Opened 1 year ago Closed 1 year ago

`selectMessage` function in about:3pane could select a message in the wrong folder

Categories

(Thunderbird :: Folder and Message Lists, defect, P2)

Thunderbird 115

Tracking

(thunderbird_esr102 unaffected, thunderbird_esr115 fixed, thunderbird117 fixed)

RESOLVED FIXED
118 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird_esr115 --- fixed
thunderbird117 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file)

The selectMessage function looks for the message in the message list and selects it. If the message isn't found, we change to the message's folder and try again. However we use findIndexOfMsgHdr to find the message, and that only compares message keys. Two messages in different folders can have the same key, so we could find the right message key in the wrong folder and select that message instead.

Severity: -- → S3
Keywords: regression
Priority: -- → P2
Version: unspecified → Thunderbird 115

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/e2b25851c9b6
Fix selectMessage when a change of folder is required. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Blocks: 1845011

Comment on attachment 9347064 [details]
Bug 1846885 - Fix selectMessage when a change of folder is required. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: wrong message can get selected without any apparent reason
Testing completed (on c-c, etc.): landed a week ago
Risk to taking this patch (and alternatives if risky): low

Attachment #9347064 - Flags: approval-comm-beta?

Comment on attachment 9347064 [details]
Bug 1846885 - Fix selectMessage when a change of folder is required. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Attachment #9347064 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9347064 [details]
Bug 1846885 - Fix selectMessage when a change of folder is required. r=#thunderbird-reviewers

[Triage Comment]
Marked as blocking bug 1845011 which has failing tests on comm-esr115 currently. Uplifting this bug seems to fix those failures.

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

Attachment

General

Created:
Updated:
Size: