Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibWeb: Allow keyboard input to alter email inputs #3065

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

tcl3
Copy link
Member

@tcl3 tcl3 commented Dec 27, 2024

Previously, theHTMLInputElement.selectinStart and HTMLInputElement.selectionEnd IDL setters, and the setRangeText() IDL method were used when updating an input's value on keyboard input. These methods can't be used for this purpose, since selection doesn't apply to email type inputs. Therefore, this change introduces internal-use only methods that don't check whether selection applies to the given input.

Fixes #3054

Previously, the`HTMLInputElement.selectinStart` and
`HTMLInputElement.selectionEnd` IDL setters, and the
`setRangeText()` IDL method were used when updating an input's value
on keyboard input. These methods can't be used for this purpose,
since selection doesn't apply to email type inputs. Therefore, this
change introduces internal-use only methods that don't check whether
selection applies to the given input.
@shlyakpavel
Copy link
Contributor

shlyakpavel commented Dec 28, 2024

image This fixes email input on google services, such as gmail login page

@awesomekling awesomekling merged commit db24440 into LadybirdBrowser:master Dec 30, 2024
8 checks passed
@tcl3 tcl3 deleted the libweb_email_input_fix branch December 30, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to type in email input
4 participants