Skip to content

script: Start using &mut JSContext in devtools and webdriver code#42640

Merged
sagudev merged 4 commits intoservo:mainfrom
Gae24:more-js-context
Feb 16, 2026
Merged

script: Start using &mut JSContext in devtools and webdriver code#42640
sagudev merged 4 commits intoservo:mainfrom
Gae24:more-js-context

Conversation

@Gae24
Copy link
Copy Markdown
Contributor

@Gae24 Gae24 commented Feb 15, 2026

This is a first step to compile scripts using &mut JSContext.

Testing: Refactor, covered by existing WPT tests.
Part of #40600

use CurrentRealm inside `Window::WebdriverCallback`, propagating it to `jsval_to_webdriver`

Signed-off-by: Gae24 <[email protected]>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 15, 2026
Copy link
Copy Markdown
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

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

All of it LGTM, but I don't know yet how to deal with these realms. So pinged @sagudev for these to double-check me.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Feb 15, 2026
@github-actions
Copy link
Copy Markdown

🔨 Triggering try run (#22053632891) for Linux (Build libservo)

@github-actions
Copy link
Copy Markdown

✨ Try run (#22053632891) succeeded.

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 16, 2026
@sagudev sagudev added this pull request to the merge queue Feb 16, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 16, 2026
Merged via the queue into servo:main with commit c13d8a2 Feb 16, 2026
33 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 16, 2026
@Gae24 Gae24 deleted the more-js-context branch February 18, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants