"Tray icon always on" has stopped working
Categories
(Thunderbird :: OS Integration, defect)
Tracking
(thunderbird_esr102 unaffected, thunderbird114 wontfix, thunderbird115 fixed)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr102 | --- | unaffected |
| thunderbird114 | --- | wontfix |
| thunderbird115 | --- | fixed |
People
(Reporter: betterbird.project, Assigned: leftmostcat)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [snnot3p])
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details | Review |
+++ This bug was initially created as a clone of Bug #1727874 +++
"Tray icon always on" has stopped working, in Daily it works sometimes, other times it doesn't. In slower debug builds, it mostly doesn't work.
We debugged it and it turns out that "profile-after-change" does not fire any more
https://searchfox.org/comm-central/search?q=profile-after-change&path=MailNotificationManager.jsm&case=false®exp=false
Likely that MailNotificationManager is initialized later now after "profile-after-change" has already run. We recommend to run this._updateUnreadCount(); directly.
We like the feature, so we would like to see it working in TB 115:
https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1832395-fix-tray-icon-always-on.patch
Likely regressed here: https://hg.mozilla.org/comm-central/rev/17ad6ea84651
Comment 3•2 years ago
|
||
I was the author of the "keep tray icon" change, however I'm out of my depth here with how the events firing sequence changed and may need some assistance on where from to call the init method now?
Just take the patch, attach it here and ask for review. Can you confirm that it doesn't work reliably in Daily or beta? For us it fails about every third time.
Comment 5•2 years ago
|
||
John, is this add-on territory? wrt "profile-after-change" does not fire any more.
Also: would you think that this is related to sn-3pane changes?
(In reply to BB from comment #0)
We debugged it and it turns out that "profile-after-change" does not fire any more
https://searchfox.org/comm-central/search?q=profile-after-change&path=MailNotificationManager.jsm&case=false®exp=falseLikely that MailNotificationManager is initialized later now after "profile-after-change" has already run. We recommend to run
this._updateUnreadCount();directly.
^^ Geoff, fyi. Recommendation to "run this._updateUnreadCount(); directly" reminded me of bug 1833345. Otherwise, just ignore.
Comment 6•2 years ago
|
||
This is not code I am involved with or have deeper knowledge. I can confirm, that profile-after-change is not fired and this is never executed:
https://searchfox.org/comm-central/rev/1045fa69e30893e86041a615f0bdfd4bc78bfa21/mailnews/base/src/MailNotificationManager.jsm#120-123
I do not think this is add-on related, but this change in core stopped working.
Updated•2 years ago
|
| Assignee | ||
Comment 7•2 years ago
|
||
This issue here appears to be in our expectations: we expect MailNotificationService to notify us of an update to the unread message count some time after we've registered a listener for it. However, it now sends out the notification on startup and we can only listen after it's started.
Comment 8•2 years ago
|
||
Does the patch from comment #1 not work?
| Assignee | ||
Comment 9•2 years ago
|
||
(In reply to Fred Vanderstein from comment #8)
Does the patch from comment #1 not work?
That patch will be the basis of the fix, but some additional work is needed around it before it can be merged.
| Assignee | ||
Comment 10•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 11•2 years ago
|
||
Pushed by elizabeth@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/78947f14f83d
Ensure listeners have accurate new/unread mail count on startup. r=darktrojan
Updated•2 years ago
|
Comment 12•2 years ago
|
||
Comment on attachment 9337930 [details]
Bug 1832395 - Ensure listeners have accurate new/unread mail count on startup. r=darktrojan
[Triage Comment]
Approved for beta
Comment 13•2 years ago
|
||
| bugherder uplift | ||
Thunderbird 115.0b4:
https://hg.mozilla.org/releases/comm-beta/rev/42c392e46078
Description
•