Tooltips no longer show avatars
Categories
(Thunderbird :: Instant Messaging, defect)
Tracking
(thunderbird72 fixed, thunderbird73 fixed)
People
(Reporter: clokep, Assigned: khushil324)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
mkmelin
:
review+
mkmelin
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
STR:
- Connect to an XMPP account
- Hover over a user who has an avatar set
- See that there's no user icon in the top left of the tooltip
I'm fairly certain this is a regression from bug 1506529.
Reporter | ||
Comment 1•5 years ago
|
||
Khushil, do you know if this worked after converting the tooltip to a custom element?
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Not sure if it's related but I see when I hover over the #maildev tab that some text overwrites other text.
Assignee | ||
Comment 6•5 years ago
|
||
On Trunk, right now, no tooltip is shown. Also, the contextmenu for chat-imconv, chat-contact and chat-group is also not shown. Patrick, do you have any idea or any bug filed for this issue?
Reporter | ||
Comment 7•5 years ago
|
||
Khushil, last I checked these worked fine. I haven't had time to make a build in a while though. I think the last bug filed on this was bug 1591357. I haven't been tracking another bug about this.
Assignee | ||
Comment 8•5 years ago
|
||
Magnus, can you check on the trunk? Is this regression for bug 1591357?
Comment 9•5 years ago
|
||
No, a regression from bug 1597131. I attached a fix there.
Assignee | ||
Comment 10•5 years ago
|
||
Assignee | ||
Comment 11•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #4)
so how is "no buddyIconFilename" handled now?
If aBuddy.buddyIconFilename is null then userIcon will be also null. And we have this in inheritedAttributes: ".userIcon": "src=userIcon"
Because userIcon is null, src will not be set and we have CSS: .userIcon:not([src]) { display: none; }
Assignee | ||
Updated•5 years ago
|
Comment 12•5 years ago
|
||
(In reply to Khushil Mistry [:khushil324] from comment #11)
If aBuddy.buddyIconFilename is null then userIcon will be also null. And we have this in inheritedAttributes: ".userIcon": "src=userIcon"
Because userIcon is null, src will not be set and we have CSS: .userIcon:not([src]) { display: none; }
The tooltip element is reused, so if a previous tooltip had src, setting to null would not remove src, no? I think you need to conditionally remove the userIcon attribute.
Updated•5 years ago
|
Assignee | ||
Comment 13•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #12)
The tooltip element is reused, so if a previous tooltip had src, setting to null would not remove src, no? I think you need to conditionally remove the userIcon attribute.
I misunderstood it. Now in updateTooltipFromConversation, we are removing userIcon attribute. There is a linting error in the current patch. I will resubmit it now.
Assignee | ||
Comment 14•5 years ago
|
||
Updated•5 years ago
|
Comment 15•5 years ago
|
||
Assignee | ||
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
Assignee | ||
Comment 18•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #17)
"" should count as not set, I'd think?
No, this means protocol supports buddy-icon but the user has not set yet. So one needs to show default buddy-icon. We are doing it here: https://searchfox.org/comm-central/source/mail/components/im/themes/chat.css#323
Updated•5 years ago
|
Comment 19•5 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/2e35cc63542c
Fixed chat-tooltips no longer show avatars. r=mkmelin
Updated•5 years ago
|
Updated•5 years ago
|
Comment 20•5 years ago
|
||
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Description
•