<input>s' validation message prevents first click on input content from happening
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox44 | --- | affected |
People
(Reporter: arni2033, Unassigned)
References
()
Details
Comment 1•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 2•6 years ago
•
|
||
Analysis so far: nsWindow::OnButtonPressEvent
rolls up the validation message in nsWindow::CheckForRollup
(https://searchfox.org/mozilla-central/source/widget/gtk/nsWindow.cpp#2569) and prevents it form dispatching the event to the editor. Hence, the caret doesn't move.
There seems to be a related problem: for instance when having the "Bookmarks" tab open and then directly clicking into an input field the caret doesn't move to the clicked position and no 'onclick' event is fired.
Comment 3•6 years ago
|
||
Mats: as the root cause of the problem doesn't seem to be in DOM code but rather in widget/gtk/
and likely in widget/windows/
, does it make sense to take this bug over? If I can help with any information, please let me know.
Comment 4•6 years ago
|
||
Yeah, the underlying problem is likely in layout / widget code
Comment 5•6 years ago
|
||
Right, I guess changing that code will mean that clicking in a <select> element when the popup is open would not hide the popup ...
Comment 6•6 years ago
|
||
To be clear: that behavior is intentional for <select> (and other
menu-type things?), but we should probably not consume the event
in this case.
Updated•2 years ago
|
Description
•