Skip to content

Implement actions_by_tick for webdriver#37153

Merged
xiaochengh merged 4 commits intoservo:mainfrom
longvatrong111:webdriver-tick-actions-impl
Jun 3, 2025
Merged

Implement actions_by_tick for webdriver#37153
xiaochengh merged 4 commits intoservo:mainfrom
longvatrong111:webdriver-tick-actions-impl

Conversation

@longvatrong111
Copy link
Copy Markdown
Contributor

@longvatrong111 longvatrong111 commented May 27, 2025

Implement actions by tick according to the spec.
The major change is dispatch_actions should receive a actions by ticks as param.

https://w3c.github.io/webdriver/#dispatching-actions

The algorithm to dispatch actions takes a list of actions grouped by tick, and then causes each action to be run at the appropriate point in the sequence.

Reference for types in webdriver:
https://hackmd.io/b59NiPcLR_Gagh7r6r7BEw?view

cc: @xiaochengh

@longvatrong111 longvatrong111 force-pushed the webdriver-tick-actions-impl branch from c108577 to 37bef77 Compare May 27, 2025 11:54
Copy link
Copy Markdown
Contributor

@xiaochengh xiaochengh left a comment

Choose a reason for hiding this comment

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

Seems good in general.

@longvatrong111 longvatrong111 marked this pull request as ready for review May 28, 2025 09:13
@longvatrong111 longvatrong111 requested a review from xiaochengh May 28, 2025 09:48
@longvatrong111 longvatrong111 force-pushed the webdriver-tick-actions-impl branch from bd7126d to 3ee428f Compare May 29, 2025 09:31
Copy link
Copy Markdown
Contributor

@xiaochengh xiaochengh left a comment

Choose a reason for hiding this comment

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

Got a question about process_an_input_source_action_sequence, plus some minor coding style suggestions.

@longvatrong111 longvatrong111 force-pushed the webdriver-tick-actions-impl branch 2 times, most recently from 8b7ad95 to 1ec4606 Compare May 30, 2025 05:49
@longvatrong111 longvatrong111 requested a review from xiaochengh May 30, 2025 06:45
Copy link
Copy Markdown
Contributor

@xiaochengh xiaochengh left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@xiaochengh xiaochengh added this pull request to the merge queue Jun 2, 2025
Copy link
Copy Markdown
Member

@yezhizhen yezhizhen left a comment

Choose a reason for hiding this comment

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

Just some minor suggestions. Thanks for fixing this before we went wrong too far!

@xiaochengh xiaochengh removed this pull request from the merge queue due to a manual request Jun 2, 2025
Copy link
Copy Markdown
Contributor Author

@longvatrong111 longvatrong111 left a comment

Choose a reason for hiding this comment

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

Update according to the review

@xiaochengh
Copy link
Copy Markdown
Contributor

Please fix lint and DCO

@longvatrong111 longvatrong111 force-pushed the webdriver-tick-actions-impl branch from fb99c5e to eeca802 Compare June 3, 2025 07:38
@xiaochengh xiaochengh added this pull request to the merge queue Jun 3, 2025
Merged via the queue into servo:main with commit ad95a74 Jun 3, 2025
21 checks passed
@longvatrong111 longvatrong111 deleted the webdriver-tick-actions-impl branch June 4, 2025 01:55
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.

4 participants