Closed Bug 2062137 Opened 3 months ago Closed 3 months ago

A confirmation hint shown while another is visible loses its auto-hide timer and stays on screen blank

Categories

(Firefox :: General, defect)

defect

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox-esr153 --- wontfix
firefox153 --- wontfix
firefox154 --- wontfix
firefox155 --- fixed

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

Blocks: 2062145

Set release status flags based on info from the regressing bug 1618696

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.

Attachment #9624649 - Attachment description: Bug 2062137 - Restart the confirmation hint auto-hide timer when a hint is already showing, r=dao,#frontend-codestyle-reviewers!. → Bug 2062137 - Restart the confirmation hint auto-hide timer when a hint is already showing, r=dao.
Blocks: 2062552
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4ceab579b32b https://hg.mozilla.org/integration/autoland/rev/8f1d1f3c13e4 Restart the confirmation hint auto-hide timer when a hint is already showing, r=dao.
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: