8000 Webdriver: Send Keys use `webview::notify_input_event` by PotatoCP · Pull Request #37911 · servo/servo · GitHub
[go: up one dir, main page]

Skip to content

Conversation

PotatoCP
Copy link
Contributor
@PotatoCP PotatoCP commented Jul 7, 2025

Previously, we SendKeys will be forwarded to constellation by the embedder. Now we use webview.notify_input_event, which will send WebDriverCommandMsg::ForwardInputEvent for the KeyboardEvent and CompositionEvent.

Fixes: part of #37370

@PotatoCP
Copy link
Contributor Author
PotatoCP commented Jul 7, 2025

@PotatoCP PotatoCP changed the title Webdriver: Send Keys use webview::notify_input_event Webdriver: Send Keys use webview::notify_input_event Jul 7, 2025
@PotatoCP PotatoCP marked this pull request as ready for review July 7, 2025 05:49
@PotatoCP PotatoCP requested a review from atbrakhi as a code owner July 7, 2025 05:49
@xiaochengh xiaochengh self-requested a review July 7, 2025 10:39
Copy link
Member
@jdm jdm left a comment

Choose a reason for hiding this comment

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

I love how much simpler this is.

Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
@PotatoCP
Copy link
Contributor Author

I have just rebased to resolve conflict

Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
Copy link
Member
@mrobinson mrobinson left a comment

Choose a reason for hiding this comment

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

Made a small adjustment to not continually fetch the WebView while processing events.

@mrobinson mrobinson enabled auto-merge July 10, 2025 12:03
@mrobinson mrobinson added this pull request to the merge queue Jul 10, 2025
Merged via the queue into servo:main with commit a475175 Jul 10, 2025
21 checks passed
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.

3 participants
0