Toggling mail.showCondensedAddresses only updates the mail header but not the thread pane
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(thunderbird_esr102 unaffected, thunderbird_esr115? fixed, thunderbird118? fixed)
Tracking | Status | |
---|---|---|
thunderbird_esr102 | --- | unaffected |
thunderbird_esr115 | ? | fixed |
thunderbird118 | ? | fixed |
People
(Reporter: max.m, Assigned: vineet)
References
(Blocks 1 open bug)
Details
(Keywords: regression, Whiteboard: [TM 115.3.0][Supernova3p])
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr115+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Steps to reproduce:
Toggling mail.showCondensedAddresses only updates the mail header but not the thread pane.
Looks like the code that did that was removed:
https://searchfox.org/comm-esr102/rev/87b2dbcf3e8dea1bc709d322a521db7163709457/mail/base/content/msgMail3PaneWindow.js#414-416
New code here:
https://searchfox.org/comm-central/rev/4c9f90ce0b6b80bd633abb666e8f6d069d888e71/mail/base/content/msgHdrView.js#488-492
Note: The pref is exposed in the UI: Show only display name for people in my address book.
Updated•2 years ago
|
Updated•1 years ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Comment 2•1 year ago
|
||
After bug 1827743, the AB listens to "mail.displayname.version" and then creates another event "addrbook-displayname-changed" that leads to a repaint in about3Pane.js. Suggested is that for a change in "mail.showCondensedAddresses" you increase the "mail.displayname.version" and rely on a repaint via "addrbook-displayname-changed".
Why don't you create one listener in about3Pane.js for "mail.displayname.version" which will repaint the tree. When "mail.showCondensedAddresses" changes, you increase "mail.displayname.version" and the observer will take are of the repainting. The "addrbook-displayname-changed" event can then be removed altogether.
These changes to "mail.displayname.version" also take the deviation via "addrbook-displayname-changed".
https://searchfox.org/comm-central/search?q=%22mail.displayname.version%22&path=AddrBookDirectory.jsm&case=false®exp=false
Comment 3•1 year ago
|
||
Maybe you need to make sure that the cache is cleared before the repaint happens. In that case the suggestion from comment #2 doesn't work.
In D182156 the comment in MsgHdrViewObserver.observe()
isn't clear. The removal of ReloadMessage();
isn't evident since that repaints the message header pane, not the tree. And that still might need repainting.
Also, please change "it's" to "its" in the last hunk.
Assignee | ||
Updated•1 year ago
|
Comment 4•1 year ago
|
||
Typo still present:
// When this prefence has been updated, we need to update the
// mail.displayname.version, which notifies it's preference observer (above).
Pushed by martin@humanoids.be:
https://hg.mozilla.org/comm-central/rev/981b9a04b03d
Show Condensed Address Pref Needs to Update Thread Pane. r=darktrojan
Updated•1 year ago
|
Assignee | ||
Comment 6•1 year ago
|
||
Comment on attachment 9341203 [details]
Bug 1831280 - Show Condensed Address Pref Needs to Update Thread Pane. r=#thunderbird-reviewers
[Approval Request Comment]
Regression caused by (bug #): -
User impact if declined: Thread pane will have issues updating to preferred display names when global prefer display name preference is updated to true.
Testing completed (on c-c, etc.): Tested locally and on beta
Risk to taking this patch (and alternatives if risky): No risk.
Comment 7•1 year ago
|
||
Comment on attachment 9341203 [details]
Bug 1831280 - Show Condensed Address Pref Needs to Update Thread Pane. r=#thunderbird-reviewers
vineet, this first needs to go on beta. :)
[Triage Comment]
Approved for beta
Comment 8•1 year ago
|
||
bugherder uplift |
Thunderbird 118.0b5:
https://hg.mozilla.org/releases/comm-beta/rev/c30c924bbf9e
Updated•1 year ago
|
Comment 9•1 year ago
|
||
Comment on attachment 9341203 [details]
Bug 1831280 - Show Condensed Address Pref Needs to Update Thread Pane. r=#thunderbird-reviewers
[Triage Comment]
Approved for esr115
Comment 10•1 year ago
|
||
bugherder uplift |
Thunderbird 115.3.0:
https://hg.mozilla.org/releases/comm-esr115/rev/e64eeaa234c2
Description
•