Skip to content

Bug 2018268 - fix: migrate script evaluation tools to WebDriver BiDi #98

Merged
juliandescottes merged 4 commits into
mozilla:mainfrom
juliandescottes:bug2018268-part1
Jun 12, 2026
Merged

Bug 2018268 - fix: migrate script evaluation tools to WebDriver BiDi #98
juliandescottes merged 4 commits into
mozilla:mainfrom
juliandescottes:bug2018268-part1

Conversation

@juliandescottes

Copy link
Copy Markdown
Collaborator

In preparation for the debugging tool, we need to switch all script evaluation to BiDi. Main reason is that BiDi will automatically pick up the paused frame for script evaluation if you are stopped at a breakpoint, but WebDriver Classic will not.

Also taking the opportunity to align both the privileged script evaluation with the regular one. It frankly doesn't need a dedicated tool/command, but for now let's keep it as is.

@juliandescottes juliandescottes marked this pull request as ready for review June 12, 2026 10:01
@juliandescottes juliandescottes requested review from dmose and padenot June 12, 2026 10:01
Comment thread src/tools/script.ts
});

// Race against timeout as WebDriver BiDi callFunction has no built-in
// timeout feature.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Exactly, the topic hasn't moved much since we landed the initial script commands (to be clear, evaluate has the same issue, but it has a clearer TODO in the spec :) )

@juliandescottes juliandescottes merged commit 234de3f into mozilla:main Jun 12, 2026
1 check passed
@juliandescottes juliandescottes deleted the bug2018268-part1 branch June 12, 2026 12:20
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