Skip to content

Rework webdriver session - #38225

Merged
xiaochengh merged 4 commits into
servo:mainfrom
longvatrong111:webdriver-capabilities
Jul 28, 2025
Merged

xiaochengh merged 4 commits into
servo:mainfrom
longvatrong111:webdriver-capabilities

Conversation

@longvatrong111

Copy link
Copy Markdown
Contributor

Reimplement webdriver session for better match to spec:

  • Add create_session: spec
  • Refactor handle_new_session
  • Replace PageLoadStrategy string by enum

@longvatrong111
longvatrong111 force-pushed the webdriver-capabilities branch 2 times, most recently from 7d51140 to 1681706 Compare July 23, 2025 09:50
@longvatrong111
longvatrong111 marked this pull request as ready for review July 23, 2025 09:52
Comment thread components/webdriver_server/lib.rs Resolved
Comment thread components/webdriver_server/lib.rs Resolved
Comment thread components/webdriver_server/session.rs Resolved
Comment thread components/webdriver_server/session.rs Resolved
Comment thread components/webdriver_server/session.rs Resolved
Comment thread components/webdriver_server/session.rs Resolved
Comment thread components/webdriver_server/session.rs Resolved
Comment thread components/webdriver_server/session.rs Resolved
@longvatrong111
longvatrong111 force-pushed the webdriver-capabilities branch from 1681706 to 3261ffb Compare July 28, 2025 03:16
Signed-off-by: batu_hoang <[email protected]>
@longvatrong111
longvatrong111 force-pushed the webdriver-capabilities branch from 3261ffb to 0b812ce Compare July 28, 2025 03:40
@longvatrong111
longvatrong111 marked this pull request as draft July 28, 2025 07:17
@longvatrong111
longvatrong111 marked this pull request as ready for review July 28, 2025 07:35
@longvatrong111
longvatrong111 force-pushed the webdriver-capabilities branch from cfd6cb5 to 220bca0 Compare July 28, 2025 08:02
Comment thread components/webdriver_server/lib.rs Resolved
Comment thread components/webdriver_server/lib.rs Resolved
Comment thread components/webdriver_server/session.rs Resolved

@xiaochengh xiaochengh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with nits regarding spec comments.

@longvatrong111
longvatrong111 force-pushed the webdriver-capabilities branch from 220bca0 to c987f01 Compare July 28, 2025 08:59
@xiaochengh
xiaochengh enabled auto-merge July 28, 2025 09:10
Signed-off-by: batu_hoang <[email protected]>
auto-merge was automatically disabled July 28, 2025 09:17

Head branch was pushed to by a user without write access

@longvatrong111
longvatrong111 force-pushed the webdriver-capabilities branch from c987f01 to f9f0506 Compare July 28, 2025 09:17
@xiaochengh
xiaochengh added this pull request to the merge queue Jul 28, 2025
Merged via the queue into servo:main with commit f5ee72f Jul 28, 2025
abdelrahman1234567 pushed a commit to abdelrahman1234567/servo that referenced this pull request Jul 28, 2025
Reimplement webdriver session for better match to spec:

- Add `create_session`:
[spec](https://www.w3.org/TR/webdriver2/#dfn-create-a-session)
- Refactor `handle_new_session`
- Replace `PageLoadStrategy` string by enum

---------

Signed-off-by: batu_hoang <[email protected]>
@longvatrong111
longvatrong111 deleted the webdriver-capabilities branch July 28, 2025 18:43
@jdm jdm mentioned this pull request Jul 28, 2025
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.

2 participants