Closed Bug 2076103 Opened 1 month ago Closed 19 days ago

The Chat History and More Menus from the Ai conversation flicker when clicked and dragged to the side

Categories

(Core :: Machine Learning: Frontend, defect)

Desktop
Unspecified
defect

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox-esr153 --- disabled
firefox157 --- disabled
firefox158 --- disabled
firefox159 --- disabled
firefox160 --- disabled
firefox161 --- verified

People

(Reporter: rdoghi, Assigned: akulyk)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aidisc] [recomp-support])

Attachments

(1 file, 1 external file)

Attached video flickers.mp4 —

Found in

  • Nightly 159.0a1 (2026-09-28)

Affected versions

  • Nightly 159.0a1 (2026-09-28)

Affected platforms

  • All

Preconditions
Enable Smart Window

Steps to reproduce

  1. Open a new Tab and start a conversation.
  2. Click the Chat history button and drag it to the right side
  3. Click the More button and drag it to the right side.

Expected result

  • The menus should flicker when dragged and dropped to the side.

Actual result

  • Both menus seem to Flicker when dragged and dropped to the right.

Regression range
N/A

panel-list.mjs exempts only a contextmenu open from light dismiss, so a mousedown open stays popover="auto", and LightDismissOpenPopovers runs at ePointerDown before moz-button's mousedown listener opens the list: its pointerdown target is left null, and a release away from the button matches that null and hides the popover the press just opened. Bug 2071887's toggle sync at #517-523 now closes the list cleanly rather than leaving it painted in the wrong place, so the old misplaced panel became a brief flash instead, and the delayed showPopover() shortens the visible window further, which is why it reads as a flicker and is intermittent.

Fix: In show(), treat a mousedown triggering event as not light-dismissable too, so the panel stays anchored across press-drag-release and addHideListeners() owns dismissal, as contextmenu opens already do; testPressDragReleaseLightDismiss in test_panel_list_popover.html asserts the current hide and needs updating with it.

Note that I triaged this from the steps to reproduce and the code; I did not view the screen recording.

Suggested severity: S4. A deliberate press and drag away from the button flashes the menu open and closed, while an ordinary click opens it and leaves it correctly anchored.


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-wrong-file, ai-triage-wrong-cause, ai-triage-hallucination, ai-triage-out-of-scope, ai-triage-wrong-fix, ai-triage-shallow-fix.

Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.

The severity field is not set for this bug.
:jlevinsohn, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jlevinsohn)
Severity: -- → S4
Flags: needinfo?(jlevinsohn)
See Also: → 2080339
Assignee: nobody → akulyk

When the UA hides the popover itself (a light dismiss, or another auto popover
evicting it), panel-list clears its open attribute in response. The toggle event
is queued, so until it fires the list stays open outside the top layer and can
paint a frame at its absolute position, e.g. flickering to the side after a
press-drag-release. beforetoggle fires before the popover leaves the top layer.

Attachment #9659148 - Attachment description: Bug 2076103 - Sync panel-list open state on beforetoggle to prevent flickering. r=#reusable-components-reviewers → Bug 2076103 - Hide panel-list popovers that aren't in the top layer to prevent flickering. r=#reusable-components-reviewers
Whiteboard: [aidisc] → [aidisc] [recomp-support]
Pushed by akulyk@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6ed6ab6de0d7 https://hg.mozilla.org/integration/autoland/rev/7c4ae6108f9e Hide panel-list popovers that aren't in the top layer to prevent flickering. r=reusable-components-reviewers,mstriemer,desktop-theme-reviewers
Status: NEW → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The patch landed in nightly and beta is affected.

:akulyk, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox160 to wontfix if the fix can wait for the next release.

Uplift requests can be submitted from Lando: D333485.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(akulyk)

Verified as fixed in our latest Nightly 161.0a1 (2026-10-28)

QA Whiteboard: [qa-found-in-c159][S3] → [qa-found-in-c159][S3][qa-ver-needed-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: