A confirmation hint shown while another is visible loses its auto-hide timer and stays on screen blank
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: florian, Assigned: florian)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
ConfirmationHint.show() arms the panel's auto-hide timer from a popupshown listener. Called while a hint is already visible, it first calls _reset() — clearing the pending timer and removing the animate attribute — and then calls this._panel.openPopup(). That call does nothing: nsXULPopupManager::MayShowPopup returns false for any state other than ePopupClosed or ePopupInvisible (nsXULPopupManager.cpp:2037). No popupshown fires, so no timer is armed and nothing is left to hide the panel; it stays up until an unrelated rollup takes it down.
It stays up blank. In panelUI-shared.css, #confirmation-hint-checkmark-animation-container[animate] is what gives the checkmark its background image, and [animate] + #confirmation-hint-message-container is what sets opacity: 1 on the message. With animate removed by _reset() and never re-added, the checkmark loses its image and the message fades to transparent over its 60ms opacity transition. The result is an empty arrow panel stuck on screen.
STR: trigger two confirmation hints within about 3s, e.g. "Close duplicate tabs" twice from the all-tabs menu.
This regressed from bug 1618696, which added the _reset() call at the top of show(). Before that, a second show() left the first call's setTimeout running, so the panel still auto-hid — at the first hint's deadline rather than the second's, but it did come down.
The fix extracts the timer body into startAutoHideTimer() and calls it directly when this._panel.state == "open", with a regression test in a new browser/base/content/test/confirmationHints/ directory.
One pre-existing problem is not fixed here: because openPopup() is skipped, the second hint also keeps the first hint's anchor and renders in the wrong place. With this fix that misplaced hint is auto-hidden after 3.12s instead of lingering indefinitely
Comment 1•3 months ago
|
||
Set release status flags based on info from the regressing bug 1618696
| Assignee | ||
Comment 2•3 months ago
|
||
show() clears the pending timer and then calls openPopup(), which is a no-op
while the panel is open, so the popupshown listener that would rearm the timer
never runs. Arm it directly instead.
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 4•3 months ago
|
||
| bugherder | ||
Comment 5•3 months ago
|
||
| bugherder | ||
Updated•3 months ago
|
Description
•