Preventing default for click events on GeckoView browsers prevents <select> options from opening
Categories
(GeckoView :: General, defect, P1)
Tracking
(Webcompat Priority:?, firefox70 wontfix, firefox71 wontfix, firefox72 fixed)
People
(Reporter: amejia, Assigned: droeh)
References
Details
(Whiteboard: [geckoview:m1911])
Attachments
(1 file)
See fenix issue https://github.com/mozilla-mobile/fenix/issues/6169
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Arturo says he can reproduce in both Fenix and GVE.
Temporarily assigning to Dylan because he offered to test.
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
Adding this to the November sprint after talking with Emily.
Assignee | ||
Comment 3•6 years ago
|
||
smaug, can you offer some insight here -- from MDN[0] it sounds to me like this is actually working as intended in GV, and desktop is broken. In particular, the behavior of the checkbox in the MDN example is the same on both desktop and GV (it prevents a user from interacting with the checkbox) and is in line with what GV is doing with the select example Arturo provided. Am I misunderstanding the intended behavior here? (And if so, why wouldn't this prevent the default action when clicking on the select?)
Comment 4•6 years ago
|
||
P1 because Dylan says he is working on this bug.
Comment 5•6 years ago
|
||
Did you forget to add some link? And I don't quite understand the question. Comment 3 talks about checkbox, but this bug is about <select>.
Checkbox has its own very weird behavior, because of legacy (search for "The legacy-pre-activation behavior for input elements are these steps:" in html spec https://html.spec.whatwg.org/).
And whether or not <select> reacts to click is defined in HTML too - there is no activation behavior, so it doesn't deal with click.
Calling preventDefault() on mousedown is supposed to prevent select to open, or at least browsers do that, though it doesn't seem to be in the spec. And mousedown makes sense here, since that is when the popup opens, not after mouseup.
Assignee | ||
Comment 6•6 years ago
|
||
Ah, yes, I meant to add https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault and forgot, for the checkbox example. But you clarified things for me anyways with the comment about the popup opening on mousedown -- thanks!
Assignee | ||
Comment 7•6 years ago
|
||
Comment 9•6 years ago
|
||
bugherder |
Comment 10•6 years ago
|
||
firefox71=wontfix because I assume there is no urgent need to uplift this <select> fix to GV Beta (71).
Updated•1 year ago
|
Description
•