Improve implementation of status bar feedback after bug 1901846 - ... Feed status bar from FIFO queue every 750ms.
Categories
(MailNews Core :: General, defect)
Tracking
(Not tracked)
People
(Reporter: francesco, Assigned: maxe, NeedInfo)
References
(Depends on 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
Bug 1901846 introduced a 750 ms delay in displaying status bar messages which makes the status bar out of sync with the real action. This was documented in bug 1945489 comment 0 and bug 1945489 comment 2 (quote):
Overall the implementation in that bug (bug 1901846) to show each message for 750ms and to only drop messages when the queue is longer than 10 entries doesn't appear to be correct. For example when moving many messages, the folder count in the folder tree is way ahead of the status bar display. If I interpret it correctly, the last message in the queue will be displayed after 7.5 seconds when it is no longer relevant.
I've seen this when trying to copy, e.g., 100 messages. When it successfully finishes, in status bar I see final "75 of 100" and not a final message "100 of 100".
For anyone finding their way here in frustration:
path=chrome/messenger/content/messenger/mailWindow.js
unzip omni.ja $path
sed -i 's/MIN_DISPLAY_TIME = 750/MIN_DISPLAY_TIME = 1/' $path
zip omni.ja $path
thunderbird --purgecaches
Comment 2•7 months ago
|
||
I've seen several support posts in recent months. Can anyone cite some?
Updated•6 months ago
|
| Assignee | ||
Comment 4•4 months ago
|
||
Updated•4 months ago
|
| Assignee | ||
Comment 5•4 months ago
|
||
Well, there is nothing stopping us from pushing in the direction we want to go for, honestly after all discussion I like the pre bug 1799764 / bug 1803255 behaviour a lot.
Try run, user feedback appreciated https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=7f0edb0d02e396a2088401cf67e64017e4c031c3.
@Francesco could you test if it meets or exceeds your expectations?
| Reporter | ||
Comment 6•4 months ago
|
||
Your build failed, so it doesn't meet my expectations ;-) - No need for further NI, I'll notice the comment.
| Assignee | ||
Comment 8•4 months ago
|
||
(In reply to Francesco from comment #7)
Is there a successful build to try?
Locally yes, looks like I did something that the try process does not like. And also, this exact version is obsolete because of further planned refactoring (see Phabricator). Both regarding nsIMsgWindow.
Updated•4 months ago
|
| Assignee | ||
Comment 9•4 months ago
|
||
(In reply to Max Emig [:maxe] from comment #8)
(In reply to Francesco from comment #7)
Is there a successful build to try?
Locally yes, looks like I did something that the try process does not like. And also, this exact version is obsolete because of further planned refactoring (see Phabricator). Both regarding
nsIMsgWindow.
I was able to refactor that out with only minor drawbacks, however Windows is currently busted on the entire try-comm-central.
In terms of policy, everything is possible even without the legacy methods, we just need to decide how we want it.
Status bar policy, same as pre-Supernova:
- The status bar shows what is happening right now; a newer state replaces an older one instead of queueing behind it.
- A state that is no longer relevant leaves right away; delays only apply to showing states, never to clearing them.
- Status reports target the window whose operation they belong to; operations without a window run silently in the background.
- A result worth keeping (e.g. "Done compacting…") is shown persistently, without delay, and is not overwritten by current-state chatter.
- Activity shorter than the meteor debounce (half a second) never starts the throbber.
Kept from past improvements:
- A state has to stay current for half a second before it is shown, so short-lived states never flicker by unreadably (the readability goal of bug 1901846, without its replay queue).
- A persistent result is cleared by the next user interaction instead of lingering until another operation replaces it.
| Assignee | ||
Comment 10•2 months ago
|
||
Hey Magnus,
Thanks for your Phabricator comment:
Whatever solution we end up with, don't do it through passing around nsIMsgWindow which I'll be removing shortly once back from PTO. (It's not a window either)
Do you plan to deprecate anything else?
Is it a good idea to base this on getWindowFor? Do you want to keep that as-is?
Thanks,
Max
Comment 11•1 month ago
|
||
A state has to stay current for half a second before it is shown, so short-lived states never flicker by unreadably (the readability goal of bug 1901846, without its replay queue).
I read this as "status events will be delayed by half a second", which sounds almost as unfortunate as the behaviour relating to this bug. Slow status bar = network issues, it's been that way for 30 years or more. The original goal is laudable, but it is deeply perplexing to desire intentionally designing latency into the UI as a solution. Few if any other pieces of software work that way. Regarding the original user difficulties, perhaps a visual indicator of some sort would be a better direction
Description
•