Closed Bug 1941702 Opened 1 year ago Closed 1 year ago

Going back to a previously opened folder can cause the selection to be restored twice

Categories

(Thunderbird :: Folder and Message Lists, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED
136 Branch

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 external file)

When returning to a folder that's already been opened in the current session, the selection is restored. In some cases this happens two or more times as the messages load (once for each dbViewWrapperListener.onMessagesLoaded call). But even if restoreSelection doesn't change the selection, it still results in a "select" event and the message pane reloads (again). This shouldn't happen.

Attachment #9459516 - Attachment description: Bug 1941702 - When restoring the selection, don't say the selection changed if it didn't. r=welpy-cw,#thunderbird-front-end-reviewers! → Bug 1941702 - If a message is displayed, refuse to load it again. r=welpy-cw,#thunderbird-front-end-reviewers!
Target Milestone: --- → 136 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/dcf9199935b8
If a message is displayed, refuse to load it again. r=aleca,welpy-cw

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

This causes a memory leak by preventing the message pane from reloading after a folder compact. browser_messageCommandsOnMsgstore.js is failing with this leak. I'm going to back it out and try a different approach.

Attachment #9459516 - Attachment description: Bug 1941702 - If a message is displayed, refuse to load it again. r=welpy-cw,#thunderbird-front-end-reviewers! → Bug 1941702 - When restoring the selection, don't say the selection changed if it didn't. r=welpy-cw,#thunderbird-front-end-reviewers!
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/eeceba60a888
When restoring the selection, don't say the selection changed if it didn't. r=welpy-cw,aleca

Status: REOPENED → RESOLVED
Closed: 1 year ago → 1 year ago
Resolution: --- → FIXED
See Also: → 1949593
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: