folder-tooltip, chat-tooltip tooltips aren't working
Categories
(Thunderbird :: General, task)
Tracking
(Not tracked)
People
(Reporter: mkmelin, Assigned: mkmelin)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
folder-tooltip aren't working anymore after bug 1590074.
https://searchfox.org/comm-central/search?q=folder-tooltip&case=false®exp=false&path=
If I change this to load like before (after DOMWindowCreated) it works.
The folder-tooltip is defined as a normal CE - no { extends: "tooltip" } - but used as a customized built-in (using <tooltip is="folder-tooltip">), so it's not quite right. But it can't be set up as a customized built-in either. If I do that I get "TypeError: Illegal constructor." at https://searchfox.org/comm-central/rev/3979888eb7841cb8774d099c087c12d0a44c1965/mozilla/toolkit/content/customElements.js#237
Is there some reason <tooltip> can't be extended like other elements?
Assignee | ||
Comment 2•5 years ago
|
||
Right, fixed now. It's bug 1590074
Comment 3•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #0)
folder-tooltip aren't working anymore after bug 1590074.
https://searchfox.org/comm-central/search?q=folder-tooltip&case=false®exp=false&path=If I change this to load like before (after DOMWindowCreated) it works.
The folder-tooltip is defined as a normal CE - no { extends: "tooltip" } - but used as a customized built-in (using <tooltip is="folder-tooltip">), so it's not quite right. But it can't be set up as a customized built-in either. If I do that I get "TypeError: Illegal constructor." at https://searchfox.org/comm-central/rev/3979888eb7841cb8774d099c087c12d0a44c1965/mozilla/toolkit/content/customElements.js#237Is there some reason <tooltip> can't be extended like other elements?
The last searchfox link is a 404 for me, but my guess is that you need to have the class ultimately extend XULPopupElement and not XULElement (via MozXULElement). See for instance https://searchfox.org/mozilla-central/rev/7536d7f480a7f18c941a590a2d4c5119d9f52770/toolkit/content/widgets/autocomplete-popup.js#10.
Assignee | ||
Comment 4•5 years ago
|
||
Thanks Brian, that works!
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
Hmm, folder tooltips seem to work again with that patch, but somehow I don't get any tooltips of my RSS folders any more. I still get them in TB 71 beta 1, and we're less than a week after the branch date.
Comment 9•5 years ago
|
||
Also, should Local Folder has a tooltip?
Comment 10•5 years ago
|
||
It's hard to tell what should get a tooltip, I guess folders with new messages. Somehow some of my RSS folders get tooltips, but not on trunk with this patch. Maybe a different bug.
Comment 11•5 years ago
|
||
Sadly this obliterates the new mail notification. That's now empty in the TL corner when it should be BR and not empty. I popped the patch and it was back to normal.
Updated•5 years ago
|
Assignee | ||
Comment 12•5 years ago
|
||
The way folder tooltips work is if the folder has new (not just unread) messages, those are listed in a summary. If you have unexpanded subfolders with unread, it shows information about this.
Everything works the same for all types of folders as far as the tooltip is concerned.
Comment 13•5 years ago
|
||
I agree, Magnus, and new means it arrived while the session was open. However, in TB 68 and TB 71 beta I get a tooltip on an RSS folder after starting the session, so there's nothing new in it. On trunk with your patch, that tooltip isn't there. Try it.
Comment 14•5 years ago
|
||
Grrrr, scrap that, it's because the folder name is so long.
EDIT:
Everything works the same for all types of folders as far as the tooltip is concerned.
Agreed.
Assignee | ||
Comment 15•5 years ago
|
||
There's all sorts of ugly in here this file. These two classes should be even further decoupled, and the listener for the preview text is just awful.
I cleaned up some of the methods that didn't use this instead of event.target, but would always be the same, and added some more documentation. On return value was wrong too (but unused where it would have mattered).
I don't see an problem with RSS feeds.
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
Updated•5 years ago
|
Comment 18•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/addbcedd8b4b
make folder-tooltip, chat-tooltip tooltips proper customized built-ins so they work. r=jorgk DONTBUILD
Updated•5 years ago
|
Description
•