Skip to content

Conversation

@lutien
Copy link
Contributor

@lutien lutien commented Oct 22, 2025

@lutien
Copy link
Contributor Author

lutien commented Oct 23, 2025

@sadym-chromium, could you create an issue for it on your side?

@lutien lutien marked this pull request as ready for review October 23, 2025 12:21
lutien and others added 4 commits October 23, 2025 14:49
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
@sadym-chromium
Copy link
Contributor

sadym-chromium commented Oct 31, 2025

@sadym-chromium, could you create an issue for it on your side?

@lutien GoogleChromeLabs/chromium-bidi#3863

@lutien
Copy link
Contributor Author

lutien commented Nov 10, 2025

Hey, @annevk, could you maybe take another look? 🙏🏻

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Looks good modulo some minor grammar and wrapping nits.

Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
@annevk
Copy link
Member

annevk commented Nov 18, 2025

I hadn't looked at https://w3c.github.io/webdriver-bidi/#webdriver-bidi-emulated-language before but it appears that returns null or a string and we need a byte sequence here. So you need to encode the return value.

@lutien lutien force-pushed the add-emulation-of-accept-language branch from 7a4cf8f to f861fd2 Compare November 18, 2025 16:45
@lutien
Copy link
Contributor Author

lutien commented Nov 18, 2025

I hadn't looked at https://w3c.github.io/webdriver-bidi/#webdriver-bidi-emulated-language before but it appears that returns null or a string and we need a byte sequence here. So you need to encode the return value.

Ah, right, updated ✅

fetch.bs Outdated
<var>request</var>'s <a for=request>client</a>.

<li><p>If <var>emulatedLanguage</var> is non-null, then <a for="header list">append</a>
(`<code>Accept-Language</code>, <var>emulatedLanguage</var>, <a>isomorphic encoded</a>)
Copy link
Member

Choose a reason for hiding this comment

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

There's a ` missing. I also find this confusing as this could also be read as a three-tuple.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright, I've added "`". And moved encoding into a separate step to avoid having the three-tuple situation.

@lutien lutien force-pushed the add-emulation-of-accept-language branch from 0985169 to feeb5d9 Compare November 19, 2025 11:13
@annevk annevk merged commit 60e9ff5 into whatwg:main Nov 19, 2025
2 checks passed
@annevk
Copy link
Member

annevk commented Nov 19, 2025

Thanks @lutien!

@lutien lutien deleted the add-emulation-of-accept-language branch November 19, 2025 13:57
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.

3 participants