selectFolder fails If activeModes is not only "all"
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(thunderbird_esr102 affected)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr102 | --- | affected |
People
(Reporter: itagagaki, Assigned: itagagaki)
References
Details
Attachments
(1 file, 2 obsolete files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Edg/106.0.1370.52
Steps to reproduce:
Assumption:
gFolderTreeView.activeModes is [all,favorite]
folderA and folderB are subfolders in favorite view.
folderC is a subfolder in all view but not in favorite view.
All subfolders collapsed into parent folders and are not visible.
Steps to reproduce:
resultA = gFolderTreeView.selectFolder(A);
resultB = gFolderTreeView.selectFolder(B);
resultC1 = gFolderTreeView.selectFolder(C);
resultC2 = gFolderTreeView.selectFolder(C, true);
Actual results:
resultA and resultB are true.
resultC1 and resultC2 are false.
gFolderTreeView.selectFolder(C, true); will leave the folder pane with only favorite view (the all view will disappear).
Expected results:
All four results return true and the specified folder is selected.
The state of the folder pane (activeModes) does not change.
It might be related with bug 350839
If C is visible, it will not reproduce.
Comment 2•3 years ago
|
||
Would you like to submit a patch?
Is it causing any problem that can be triggered through the UI?
This issue occurs when the add-on "Manually sort folders" starts and selects a folder that has been set as the startup folder by user. I found this issue after investigating rare reports of it not working.
It may not be possible to observe this issue with pure Thunderbird without any add-ons.
In order for me to submit a patch, I first need to get my Thunderbird build and test environment in place. Next I need to understand the mechanics
and intent of the current code and find out where the mistakes are. That will take a while. So I think the right person should be in place.
Comment 4•3 years ago
|
||
Don't sell yourself short ;) See https://developer.thunderbird.net/thunderbird-development/getting-started
Updated•3 years ago
|
I have found that this issue can occur with pure TB UI, not just against add-ons.
Steps to reproduce:
- Create a new empty profile
- Add one account of some kind
- Add folders A and B under Local Folders
- Check folder A as Favorite Folder
- Set the Menu Bar to display
- [View]->[Folders] Make sure only All is checked
- [View]->[Folders] Check Favorite
- Close (collapse) all folders in "Favorite Folders" view and "All Folders" view
- [Go]->[Folder]->[Local Folders]->[B]
Actual results:
"All Folders" view disappears. Only "Favorite Folders" view remains.
Folder B is not there, so of course it is not selected.
Expected results:
Folder B under Local Folders in "All Folders" view should be selected.
I am also trying to analyze the code but have not been able to elucidate it.
So If you have a suitable person, please assign him or her.
I figured out what was wrong. And I fixed it.
How do I create and submit a patch, I am new to contributing to Mozilla.
Comment 7•3 years ago
|
||
I've read the docs but I'm stuck, when I run moz-phab I get the following error, but I don't know how to fix it.
Unable to submit commits:
Found patches applied with
mq, unable to continue
developer.thunderbird.net recommends using Mercurial Queues and says to use moz-phab to submit patches. But I faced the above error.
wiki.mozilla.org says
Does moz-phab work with mq (Mercurial Queues)
No. mq was deprecated 5+ years ago; please use evolve instead.
I am confused. I don't know where to ask the question so I wrote it here.
I would appreciate it if you could give me explanation.
Comment 9•3 years ago
|
||
Yeah we need to update that. Don't use mq, and do a normal commit. If you have the patch, "hg qfinish" and don't look back.
| Assignee | ||
Comment 10•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 11•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 12•3 years ago
|
||
| Assignee | ||
Comment 13•3 years ago
|
||
I have read, and agree to abide by, the Commit Access Requirements.
| Assignee | ||
Comment 14•3 years ago
|
||
Sorry, I don't have the permission of Level 3 Commit Access. What can I do?
Comment 15•3 years ago
|
||
Hey, you don't need to do anything. Someone will check the patch in for the next merge, that's how we use the checkin-needed-tb keyword.
Account rights would need to go to a bug of it's own, see https://www.mozilla.org/en-US/about/governance/policies/commit/ for the procedures (level 1 to begin start with)
| Assignee | ||
Comment 16•3 years ago
|
||
I see. Okay.
I got an email from Phabricator saying "You can now land this revision," so I thought I should get the permission and do merging.
Comment 17•3 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/fbd962974310
Fix gFolderTreeView.selectFolder to be as expected. r=mkmelin
Comment 18•3 years ago
|
||
Thank you so much Itagagaki for contributing and fixing the issue.
The steps reported in comment 5 are perfect for a test case.
Create a new empty profile
Add one account of some kind
Add folders A and B under Local Folders
Check folder A as Favorite Folder
Set the Menu Bar to display
[View]->[Folders] Make sure only All is checked
[View]->[Folders] Check Favorite
Close (collapse) all folders in "Favorite Folders" view and "All Folders" view
[Go]->[Folder]->[Local Folders]->[B]
We need to have a test covering this scenario, especially since we're rebuilding the entire folder pane in ash and we need to be sure we're not re-introducing old regressions.
Magnus, would you be able to take care of this?
Comment 19•3 years ago
|
||
Note to self: can probably build on mail/test/browser/folder-pane/browser_displayMessageWithFolderModes.js
Updated•3 years ago
|
Description
•