Right clicking on a folder mode header makes the tree unresponsive
Categories
(Thunderbird :: Folder and Message Lists, defect, P2)
Tracking
(thunderbird_esr78 unaffected, thunderbird87 affected)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | unaffected |
thunderbird87 | --- | affected |
People
(Reporter: wsmwk, Assigned: aleca)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
1.49 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
I assume this is a regression of sorts.
- enable Folder Pane Toolbar
- enable a second type of folder, Favorites
- click on All Folders
- File > Compact Folders
- click any folder
Results: message list does not change. must restart Thunderbird
Expected results: Compact menu item should probably be disabled when folder type is focused.
Reporter | ||
Comment 1•4 years ago
|
||
Walt, can you reproduce this?
Step 4 can also be just as simple as right clicking on All Folders or Favorite Folders - no action needs to be selected (none is presented).
Still nothing in error console.
Somehow I managed in one iteration to get folder switching to work again without restarting. I think it involved creating a new message. In another iteration I right clicked on an account and picked "New Folder" which seems to consistently reverse the folder switching problem.
Comment 2•4 years ago
|
||
Yes, I can reproduce this using Thunderbird 86.0b3 on Fedora 33 Workstation.
I used Unread and All Folders for my test.
Didn't get it to work by creating a new message or new folder.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
I'm able to reproduce this only with a right click.
It seems that the return false;
on the opening of the context menu freezes the UI, regardless if the File > Compact Folders
is used.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
All right, this is tricky.
It seems that returning false
when right clicking on a Folder Mode Header, causes the tree to sort of freeze to the point where selecting other rows doesn't change the thread view.
I fixed it by allowing the context menu to be shown also on the Header Modes, but showing only the "Search Messages" item, which is the only one that works without a properly selected folder.
I think this is acceptable as an intermediate step to fix this issue, and also the initial step for bug 1686306, where I'm planning to implement sorting options for folder modes, with menu items in the context menu to move up and down the selected mode.
The fillFolderPaneContextMenu()
is very messy, but I didn't want to update the code too much and only focus on the part to make the tree work.
If this gets approved, I'd like to do a quick follow up to clean up the code which needs a lot of love.
Assignee | ||
Updated•4 years ago
|
Comment 5•4 years ago
|
||
Comment 6•4 years ago
|
||
Did you figure out why returning false makes it freeze?
Assignee | ||
Comment 7•4 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #6)
Did you figure out why returning false makes it freeze?
No idea, and it baffles me.
Do you have any hint?
Assignee | ||
Comment 8•4 years ago
|
||
I found the issue!
Right clicking on a mode header grabs the selection without properly restoring it to the original treechildren like it happens for any other element.
So the tree remains stuck on a selection that is not really a folder and it's not able to move it to another clicked item.
Ensuring that we restore the original selection if the user right clicks on a mode header fixes the problem.
I'll defer the code improvements to the generation of the context menu to another bug since this fix is very simple.
Comment 9•4 years ago
|
||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/bebb326ced3f
Fix right click freezing the folder pane when a Mode Header is selected. r=mkmelin
Description
•