-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add support for WebDriver BiDi language emulation #11793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for WebDriver BiDi language emulation #11793
Conversation
annevk
left a comment
There was a problem hiding this comment.
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.
Co-authored-by: Maksim Sadym <[email protected]>
|
The WebDriver BiDi part is merged. So this should be ready for review. |
sadym-chromium
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Informal LGTM
| <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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then return*
| <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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then return*
| </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> |
There was a problem hiding this comment.
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.
The PR to add the required hook in WebDriver BiDi spec: w3c/webdriver-bidi#1017.
emulation.setLocaleOverrideinnavigator.languageandAccept-LanguageGoogleChromeLabs/chromium-bidi#3863(See WHATWG Working Mode: Changes for more details.)
/acknowledgements.html ( diff )
/infrastructure.html ( diff )
/system-state.html ( diff )