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

[Gecko Bug 1866431] Send full codepoints when creating key events #43722

Merged
merged 1 commit into from Dec 20, 2023

Conversation

moz-wptsync-bot
Copy link
Collaborator

Previously, given a string in element send keys, we iterated over each
UCS2 "character" in the string, so that non-BMP characters ended up as
separate key events, one for the high surrogate and one for the low
surrogate.

With this change we instead use the built in string iterator which
provides the surrogate pair in the case of non-BMP characters, so we
emit a single event for each unicode codepoint.

Differential Revision: https://phabricator.services.mozilla.com/D196220

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1866431
gecko-commit: f19c3570bc57265bbb5ba139efdb1dcb53a328bc
gecko-reviewers: webdriver-reviewers, masayuki, whimboo

Previously, given a string in element send keys, we iterated over each
UCS2 "character" in the string, so that non-BMP characters ended up as
separate key events, one for the high surrogate and one for the low
surrogate.

With this change we instead use the built in string iterator which
provides the surrogate pair in the case of non-BMP characters, so we
emit a single event for each unicode codepoint.

Differential Revision: https://phabricator.services.mozilla.com/D196220

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1866431
gecko-commit: f19c3570bc57265bbb5ba139efdb1dcb53a328bc
gecko-reviewers: webdriver-reviewers, masayuki, whimboo
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

@moz-wptsync-bot moz-wptsync-bot merged commit b50d89c into master Dec 20, 2023
19 checks passed
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1866431 branch December 20, 2023 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants