clicking a <select> within draggable element can start dragging
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox127 | --- | wontfix |
firefox128 | --- | verified |
firefox129 | --- | verified |
People
(Reporter: dzaima, Assigned: emilio)
References
(Depends on 1 open bug, Regression)
Details
(Keywords: nightly-community, regression)
Attachments
(2 files)
413 bytes,
text/html
|
Details | |
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
|
Details | Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Steps to reproduce:
- Make an element with draggable="true", with a <select> child. (can be a single <select draggable="true"> too)
- Click the select element on the text (i.e. not on the "v" on the right) to prepare to make a selection.
- Move the mouse around (to outside the dropdown and the select element).
Actual results:
If the mouse is moved outside the selection element and its dropdown, the selecting will stop and dragging starts, even though the left mouse button is not held down.
Completing the selection without leaving it will still result in the dragging action starting afterwards.
Expected results:
Once the selection dropdown is open and mouse button is released, the dragging action never happens.
![]() |
||
Updated•1 year ago
|
![]() |
||
Comment 1•1 year ago
|
||
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=f4eb76daa6742665322e599161ee5d5c9cadea89&tochange=a75137d48b997b9a72dbd81c2e4b814cb7ee0f73
![]() |
||
Updated•1 year ago
|
Comment 2•1 year ago
|
||
:emilio, since you are the author of the regressor, bug 1362907, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Comment 3•1 year ago
|
||
Depending on the severity of this issue and the patch risk, we could consider this for uplift.
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
Sorry for the lag getting to this. I can repro, but only on Linux+X11 (not wayland). Does that match what you're seeing Alice? Thanks
![]() |
||
Comment 5•1 year ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #4)
Sorry for the lag getting to this. I can repro, but only on Linux+X11 (not wayland). Does that match what you're seeing Alice? Thanks
yes,
affected x11 and xwayland.
not affected wayland.
Assignee | ||
Comment 6•1 year ago
|
||
Windows and macOS don't seem affected either... Which seems pretty weird as my patch didn't have anything platform-specific in it...
Assignee | ||
Comment 7•1 year ago
|
||
This is the same fix as bug 1893177, but for the <label>. It should
ideally not be necessary at all, but it's unclear to me why the target
difference makes us not see the pointer-up event.
That's worth digging into, and will file a follow-up on it, but this
restores the previous behavior exactly, so should be worth doing in the
interim while we figure that out.
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Comment 10•1 year ago
|
||
The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox128
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 11•1 year ago
|
||
Comment on attachment 9409196 [details]
Bug 1901764 - Make select label not react to events. r=#layout
Beta/Release Uplift Approval Request
- User impact if declined: Comment 0
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: comment 0
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Restores previous behavior trivially. Follow-up is on file to investigate the root cause of this X11-only regression, but fix is a one-liner.
- String changes made/needed: none
- Is Android affected?: No
Assignee | ||
Updated•1 year ago
|
Comment 12•1 year ago
•
|
||
Comment on attachment 9409196 [details]
Bug 1901764 - Make select label not react to events. r=#layout
Approved for 128.0b8
Comment 13•1 year ago
|
||
uplift |
Updated•1 year ago
|
Updated•1 year ago
|
Reproduced the issue with Firefox 128.0b7 on Ubuntu 22.04 X11. Clicking the dropdown button and moving the mouse will drag the button even if the mouse click is released.
The issue is verified fixed with Firefox 128.0b8 from comment 13 and 129.0a1 (2024-06-25) on Ubuntu 22 X11 and Wayland, macOS 13 and Windows 10x64. The dropdown is no longer dragged after it is clicked and the mouse is moved to the right side.
Description
•