mail notification oddly formatted with very long From: address
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(thunderbird_esr6868+ fixed, thunderbird69 fixed, thunderbird70 fixed)
People
(Reporter: jorgk-bmo, Assigned: mkmelin)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files, 2 obsolete files)
|
10.55 KB,
image/png
|
Details | |
|
9.84 KB,
patch
|
jorgk-bmo
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
|
11.97 KB,
image/png
|
Details |
+++ This bug was initially created as a clone of Bug #1568109 +++
See attachment. Richard, can you see where this goes wrong?
| Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
It seems, that it doesn't recognize that this is a vbox and use a hbox instead.
Jörg, is this reproducible? Always from same sender?
| Reporter | ||
Comment 2•6 years ago
|
||
This is a little puzzling. I've just started TB and the notification for a message from a different sender was fine. So thinking about it, it could be that it only affects notifications for messages from that Yahoo mailing list. Where do you see a vbox/hbox? Surely the formatting doesn't depend on the content that's formatted??
Comment 3•6 years ago
|
||
It should be this vbox: https://searchfox.org/comm-central/source/mailnews/base/content/newmailalert.xul#27.
Yes, content should not be able to format this.
| Reporter | ||
Comment 4•6 years ago
|
||
Yes, but why is that vbox filled badly? That happens somewhere in newmailalert.js, no? Basically the entire thing is a vbox, with some hbox(?) children, each one containing information about one message.
Comment 5•6 years ago
|
||
This is JS area, so better Magnus takes a look.
| Reporter | ||
Comment 6•6 years ago
|
||
Well, the action happens here:
https://searchfox.org/comm-central/search?q=_createFolderSummaryMessage()&case=true®exp=false&path=
So somehow the boxes aren't glued together/layed out correctly. No special JS skills needed. As you can see, we create another vbox with hbox children and some other XUL stuff.
Comment 7•6 years ago
|
||
(Notifications historically go in MW FE)
| Reporter | ||
Comment 8•6 years ago
|
||
I've observed it for a while. Only the notifications from the Yahoo mailing list are badly formatted.
| Assignee | ||
Comment 9•6 years ago
|
||
Actually, what is your expectation on how it should look? This "From" is unusually long which makes it look slightly odd, but other than that...
| Reporter | ||
Comment 10•6 years ago
|
||
Actually, you are right ;-)
The from on that list is, for example (redacted):
Mariana Sol Cubertina mariana89889@hotmail.com [Barcelona-Freecycle] <Barcelona-Freecycle-noreply@yahoogroups.com>
But the funnily formatted notification never occurred to me in TB 60. Hard to check now without going back to TB 60 on my production profile. Maybe the From: was truncated before? Or an ellipses added? CSS can do that. Did that change?
| Reporter | ||
Updated•6 years ago
|
| Assignee | ||
Comment 11•6 years ago
|
||
It can (text-overflow: ellipsis;) but then the boxes need to have given widths. I don't think we used to do that.
I tested with 60 now - you can easily test it by sending yourself a mail with a very long custom from. It does indeed behave differently: only one line for this info.
| Assignee | ||
Updated•6 years ago
|
| Reporter | ||
Comment 12•6 years ago
|
||
Glad I convinced you. When upgrading to a new version, some things just cause a "huh?" effect without being able to pin down exactly what has changed.
| Assignee | ||
Comment 13•6 years ago
|
||
Hmm, figured it out, but... 60 doesn't actually handle long from very nicely either: it can push the subject totally out of view and that looks bad. Also, comparing the behaviours I find myself missing the wrapped long subjects, typically all bugmail for instance.
| Assignee | ||
Comment 14•6 years ago
|
||
The crux here is that by label value="something" doesn't wrap, but label with text content does wrap.
I've made the sender use label value, so that won't wrap anymore, and cropping with ellipsis will take place if the from is too long. The subject is kept as textContent, so if it's long then it does wrap.
We can't use a max-width in combination with flex="1" - that makes the notification the wrong size, so I've set fixed sizes for subject and sender.
The platform specific css files were almost identical, so moved to a shared file.
| Assignee | ||
Updated•6 years ago
|
| Reporter | ||
Comment 15•6 years ago
|
||
| Assignee | ||
Comment 16•6 years ago
|
||
Per comment 14, when you set value the content is non-line-wrapping (i.e. strictly one line).
| Assignee | ||
Comment 17•6 years ago
|
||
| Reporter | ||
Comment 18•6 years ago
|
||
Something totally wrong now. While you fix it, please add a comment why we use value in one case and textContent in the other.
| Reporter | ||
Updated•6 years ago
|
| Assignee | ||
Comment 19•6 years ago
|
||
Did you rebuild? I'd imagine that's what it looks like without picking up the shared css.
| Assignee | ||
Comment 20•6 years ago
|
||
Ah, I see the jar change didn't make it into the patch
| Reporter | ||
Comment 21•6 years ago
|
||
Re. comment 19: I work here since 2015 ;-)
Re. comment 20: That's what I was going to say.
| Assignee | ||
Comment 22•6 years ago
|
||
Will deal with the preview text in bug 1568109
| Reporter | ||
Comment 23•6 years ago
|
||
Looks good now.
| Reporter | ||
Comment 24•6 years ago
|
||
Comment 25•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/627a555b3165
make mail notification properly formatted for long senders, and make sure long subjects also are properly shown. r=jorgk DONTBUILD
| Reporter | ||
Updated•6 years ago
|
Comment 26•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #14)
The platform specific css files were almost identical, so moved to a shared file.
An improvement could be to move the line in jar.inc.mn below the #ifndef XP_MACOSX because Mac doesn't use this notification.
Comment 27•6 years ago
|
||
| Reporter | ||
Updated•6 years ago
|
| Reporter | ||
Comment 28•6 years ago
|
||
TB 69 beta 2:
https://hg.mozilla.org/releases/comm-beta/rev/b557db605509cf9a0166a264144268ac021864dc (incl. follow-up)
| Reporter | ||
Comment 29•6 years ago
|
||
| Reporter | ||
Comment 30•6 years ago
|
||
Finally I could see the effect in real life with the mailing list in question. Looks good now.
Updated•5 years ago
|
Description
•