Skip to content

Add support for WebDriver BiDi language emulation - #11793

Merged
zcorpan merged 5 commits into
whatwg:mainfrom
lutien:add-support-for-webdriver-bidi-language-emulation
Nov 17, 2025
Merged

zcorpan merged 5 commits into
whatwg:mainfrom
lutien:add-support-for-webdriver-bidi-language-emulation

Conversation

@lutien

@lutien lutien commented Oct 15, 2025 •

Copy link
Copy Markdown
Contributor

The PR to add the required hook in WebDriver BiDi spec: w3c/webdriver-bidi#1017.

(See WHATWG Working Mode: Changes for more details.)


/acknowledgements.html ( diff )
/infrastructure.html ( diff )
/system-state.html ( diff )

@annevk annevk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a good start, but now that you're making these algorithms more complex, you should turn them into a list of steps similar to most other algorithms. Then they will become easier to read.

Comment thread source
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
@lutien
lutien marked this pull request as ready for review October 21, 2025 14:39
@lutien

lutien commented Oct 21, 2025

Copy link
Copy Markdown
Contributor Author

The WebDriver BiDi part is merged. So this should be ready for review.

Comment thread source
@lutien
lutien requested a review from zcorpan October 29, 2025 09:14

@sadym-chromium sadym-chromium 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.

Informal LGTM

@zcorpan
zcorpan merged commit 547f804 into whatwg:main Nov 17, 2025
2 checks passed
@lutien
lutien deleted the add-support-for-webdriver-bidi-language-emulation branch November 17, 2025 16:17
Comment thread source
<li>Let <var>emulatedLanguage</var> be the <span>WebDriver BiDi emulated language</span> for
<span>this</span>'s <span>relevant settings object</span></li>

<li>If <var>emulatedLanguage</var> is not null, return <var>emulatedLanguage</var>.</li>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

then return*

Comment thread source
<span>this</span>'s <span>relevant settings object</span></li>

<li>If <var>emulatedLanguage</var> is not null, return a <span>frozen array</span> containing
<var>emulatedLanguage</var>.</li>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

then return*

Comment thread source
</ol>

<p>The same object must be returned until the user agent needs to return different values, or
values in a different order, or <var>emulatedLanguage</var> is updated.</p>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should really follow from the algorithm and some internal state. We shouldn't really have out-of-band steps that change the requirements.

@lutien

lutien commented Nov 18, 2025

Copy link
Copy Markdown
Contributor Author

@annevk, I've created a new PR to address your comments here: #11922.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants