The Menus/Panels from the Smart Window homepage will move position if the user Holds the left mouse click and releases it anywhere else
Categories
(Core :: Machine Learning: Frontend, defect, P2)
Tracking
()
People
(Reporter: mlucks, Assigned: mlucks)
References
(Blocks 1 open bug)
Details
(Whiteboard: [aidisc] )
Attachments
(1 file, 1 external file)
|
1.09 MB,
video/mp4
|
Details |
Found in
- Nightly 155.0a1 (2026-07-26)
Affected versions
- Nightly 155.0a1 (2026-07-26)
Affected platforms
- all
Steps to reproduce
- Enable Smart Window and open a new tab.
- Click and hold on any panel-list menu item and drag to the left or right.
- You should see that the entire panel abruptly jumps to the bottom right.
Expected result
- The Menu panels should be displayed in their correct position next to their respective button.
Actual result
- The Menu panels move away from their original position.
Regression range
N/A
Comment 1•2 months ago
|
||
| frontend-triage | ||
panel-list.mjs never syncs its open attribute with the popover's real state, and moz-button opens the list on mousedown, so no popover is open yet at pointerdown: LightDismissOpenPopovers leaves its pointerdown target null, the pointerup on the page background matches that null and hides the popover behind panel-list's back. hide() never runs, so [open] keeps display: block; position: absolute painting the list once it is out of the top layer, where the viewport-derived left/top from setAlign() now resolve against a positioned ancestor such as #smartbar-wrapper, putting it low and to the right.
Fix: Add the popover toggle event to addHideListeners()/removeHideListeners() and, in handleEvent, call hide(undefined, { force: true }) when newState is "closed" while open is still set, so a UA dismissal clears the attribute, fires hidden and resets aria-expanded; test_panel_list_popover.html already covers the plain outside-click dismissal and is where the press-drag-release case belongs.
Suggested severity: S3. A stray press-drag-release leaves a dead menu panel painted in the wrong place on the Smart Window new tab, and a single click anywhere dismisses it.
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.
Updated•2 months ago
|
Comment 3•2 months ago
|
||
panel-list opens its popover on mousedown (via moz-button), so no popover is open yet at pointerdown. When a press begins before the popover opens and is released on the page background, the UA light-dismisses the popover on pointerup without panel-list's hide() ever running. The open attribute is left set, so the list keeps painting via the [open] styles (display: block; position: absolute) once it drops out of the top layer, resolving its viewport-derived left/top against a positioned ancestor and landing in the wrong place (e.g. bottom-right on the Smart Window new tab).
Fix: register the popover toggle event in addHideListeners()/removeHideListeners() and, in handleEvent, force a hide() when newState is "closed" while open is still set. This clears the attribute, fires the hidden event and resets aria-expanded so a UA dismissal is kept in sync with panel-list's own state. Normal hide() paths remove the toggle listener before their queued toggle event fires, so there is no double-hide.
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Comment 5•1 month ago
|
||
| bugherder | ||
Comment 6•1 month ago
|
||
The patch landed in nightly and beta is affected.
:mlucks, please make an uplift decision for beta:
- Nominate the patch for beta uplift approval if the fix should be included in this release, or
- Set
status-firefox158towontfixif the fix can wait for the next release.
See Requesting an Uplift for documentation on how to request an uplift.
For more information, please visit BugBot documentation.
Comment 7•1 month ago
|
||
Verified as fixed in our latest Nightly 159.0a1 (2026-09-25), However I did notice that sometimes those menus still flicker for a quick second when moved, I will attach a screen recording of it.
Please let me know if I should log a new issue for it.
Comment 8•1 month ago
|
||
The Chat history and More menus will flicker when dragged and dropped.
Comment 10•1 month ago
|
||
Updating the main status flag, Also Logged bug 2076103
Description
•