Text selected with input.setSelectionRange() is not replaced when the next character is entered
Categories
(GeckoView :: IME, defect)
Tracking
(firefox143 fixed)
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: hbenl, Assigned: m_kato)
References
Details
(Keywords: webcompat:platform-bug, Whiteboard: [fxdroid])
Attachments
(1 file)
When a text input's selection range is set using input.setSelectionRange(), the next character from the keyboard replaces the selected text in the Desktop version of Firefox but not in the Android version.
STR:
- Go to https://hbenl.github.io/test/input-set-selection-range/
- Click on the input (outside of the input's text)
- Enter some characters
The page shows input.value from an oninput handler and then resets input.value and calls input.setSelectionRange() again.
In Firefox desktop it always shows [<key>] but on Android it's [], [<key>***], [*<key>**] or [***<key>].
Comment 1•7 months ago
|
||
The severity field is not set for this bug.
:boek, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•5 months ago
|
| Assignee | ||
Updated•5 months ago
|
Updated•5 months ago
|
| Assignee | ||
Comment 2•5 months ago
|
||
When updating text in Gecko, then the text isn't updated, we may ignore
next selection change to avoid unexpected selection change.
But if selection will not be collapsed, we shouldn't ignore it since
this is caused by web content's script.
Description
•