Cc recipients needlessly not expanded
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(thunderbird_esr78+ fixed, thunderbird79 fixed)
People
(Reporter: jorgk-bmo, Assigned: khushil324)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [regression:tb71])
Attachments
(4 files, 2 obsolete files)
6.63 KB,
image/png
|
Details | |
7.83 KB,
image/png
|
Details | |
1.96 MB,
image/gif
|
Details | |
1.73 KB,
patch
|
aleca
:
review+
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
In a received e-mail the Cc recipients aren't displayed in the header pane although there is enough space. See screenshots.
Alice, could you find the regression?
Reporter | ||
Comment 1•4 years ago
|
||
Reporter | ||
Comment 2•4 years ago
|
||
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 3•4 years ago
|
||
STEPS:
- Reduce TB width so that CC field will be collapsed
- Select an email which has multi CCs in thread pane
--- observe, CC field is collapsed as expected - Select an email which has no CC in thread pane
- Expand TB width
- Select an email of step 2 again
--- observe, CC field would not be expanded, still collapsed
Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=3d544985b7296fd45fcd15123e607acf58bc1057&tochange=284f2743822fb496e79f927afcfa23dc4ee7c5cb
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=79b08a0a1c3fa2834e668b205fd69ff79c8630d1&tochange=c31591e0b66f277398bee74da03c49e8f8a0ede0
Reporter | ||
Comment 4•4 years ago
|
||
Thanks, Alice, this is very helpful.
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
|
||
Do you see the similar problem with "To" field or it's just "CC" field?
Reporter | ||
Comment 6•4 years ago
|
||
I didn't check, I just came across this in the morning for the Cc field.
Reporter | ||
Comment 8•4 years ago
|
||
Note the analysis in bug 1646313 comment #0.
Assignee | ||
Comment 9•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
•
|
||
Assignee | ||
Comment 11•4 years ago
•
|
||
Check this out: https://searchfox.org/comm-central/source/mail/base/content/msgHdrView.js#963,966,1019,1028,1222-1223,1240
UpdateExpandedMessageHeaders
function renders the header according to the message. We loop over all the header entries and set the headerEntry.valid
and after the loop completion, we call updateExpandedView
function to set the row visible which uses headerEntry.valid
for the decision on showing the row. In the same loop, we populate fields with addresses. At this time, we need client width but rows are hidden.
Here we have two choices:
- we don't populate those fields in the 1st loop, we just decide on headerEntry.valid part and run the second loop after calling
updateExpandedView
function to populate the addresses. It will add an extra loop and an extra array object. - If we want to avoid the 2nd loop and extra array object, we can simply call
headerEntry.enclosingRow.toggleAttribute("hidden", false);
on those fields before populating the addresses.
I am submitting the patch with the 2nd approach as I think we should not make it more complex.
If you think approach 1 is better then we can go with that also, it's not much work.
Assignee | ||
Comment 12•4 years ago
|
||
Comment 13•4 years ago
|
||
Comment 14•4 years ago
|
||
I noticed another small issue.
It seems that the available space is not properly calculated when the message pane turns visible for the first time.
You can see that the space is correct if I switch between messages, but if I switch from account central to inbox, the last address is cut off.
This happens also with this patch applied.
Assignee | ||
Comment 15•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 16•4 years ago
|
||
It looks good and fixes the issues.
What about this comment I wrote before?
At this point we can delete the
showHeaderView()
method since it was only used for this purpose.
Did you explore the possibility to remove that method? It seems to not be necessary with the changes.
Cheers
Assignee | ||
Comment 17•4 years ago
|
||
(In reply to Alessandro Castellani (:aleca) from comment #16)
At this point we can delete the
showHeaderView()
method since it was only used for this purpose.Did you explore the possibility to remove that method? It seems to not be necessary with the changes.
Cheers
Ohh, Sorry. Missed this comment. Updating the patch ASAP.
Assignee | ||
Comment 18•4 years ago
•
|
||
showHeaderView()
is necessary to hide other invalid/not presented headers.
Here, we are doing things to show the headers which are presented but at one point, we are showing all the headers and then hide them! Strange!
Assignee | ||
Comment 19•4 years ago
•
|
||
In the function UpdateExpandedMessageHeaders
, we are looping through all the available message headers of the current message. So we need to hide rows which are shown with the previous message that's why we need showHeaderView()
. Basically, now it's behaving as hiding the unwanted rows.
Comment 20•4 years ago
|
||
Comment 21•4 years ago
|
||
Unfortunately, the build was busted due to a recent patch from m-c.
I fixed the build, so you need to pull the latest changesets and launch another try run, sorry :D
Also, for future reference, is always good to add the link to the try-run in a comment here in the bug report, so it's easier to find.
Cheers
Assignee | ||
Comment 22•4 years ago
|
||
Comment 23•4 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b6ca9f5986d7
Fix mail-multi-emailheaderfield element not expanding properly. r=aleca
Updated•4 years ago
|
Reporter | ||
Comment 24•4 years ago
|
||
Please request uplift for this regression.
Assignee | ||
Comment 25•4 years ago
|
||
Reporter | ||
Updated•4 years ago
|
Comment 26•4 years ago
|
||
Comment 27•4 years ago
|
||
bugherder uplift |
Thunderbird 79.0b2:
https://hg.mozilla.org/releases/comm-beta/rev/236db0732add
Updated•4 years ago
|
Comment 28•4 years ago
|
||
bugherder uplift |
Thunderbird 78.0.1:
https://hg.mozilla.org/releases/comm-esr78/rev/576beb2ed581
Description
•