You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Emulation of locale doesn't affect the "accept-language" request header value in WebSocket connection on chromium browsers. #13919
This configuration means to emulate the browser locale to the "fr-FR".
Next, on the working directory, execute the following commands in a terminal console.
$ npm install
$ npm start
And on the same working directory, execute the following commands in another terminal console.
$ npm test
Describe the bug
After executing the above commands, you can see the "accept-language" HTTP request header value is "fr-FR" as I expected.
But unexpectedly, the "accept-language" request header value in the WebSocket connection is not "fr-FR" but the browser's default locale.
That unexpected behavior can be reproduced only chromium browsers such as chrome and msedge.
In case of Firefox doesn't look having this problem.
On a Firefox browser, the "accept-language" request header value in the WebSocket connection is also changed to one that I expected.
In addition, in the case of using Selenium and its WebDriver and doing the same test emulating locale, this problem doesn't happen even on chromium browsers.
Reacted by Przemek Baranski, Iuliia Bondarieva, Kim Zeevaarders, Paula Ryba, antoineSoros, PMAlexandrovich, Inesa Storozheva, iJoris, Ognyan Ivanov, Marek Lukáš and 15 more
We have a problem with that as well. Our date field changes the date format in one of the test environments that is deployed differently. This makes it impossible to rely on test data 'cause we can't provide consistency.
Any news on this BUG?
Reacted by Kim Zeevaarders, Paula Ryba, PMAlexandrovich, Inesa Storozheva, Franco Herrero, Euheny, Данил Андреев, Alhusaine NEMER, Max Daroshchanka, Oliver Micke and 2 more
Activity
dgozman commentedon May 4, 2022
jsakamoto That's a bug indeed.
pbarhyl commentedon May 31, 2023
Any news on that?
IuliiaBondarieva commentedon Jun 9, 2023
We have a problem with that as well. Our date field changes the date format in one of the test environments that is deployed differently. This makes it impossible to rely on test data 'cause we can't provide consistency.
Any news on this BUG?
iJoris commentedon Jul 27, 2023
Any update on this problem?
serkancura commentedon Aug 19, 2025
Any update on this problem?
alexaka1 commentedon Oct 2, 2025
I spent a 2 days losing my sanity over this. But I'm glad I found this is an issue and I'm not crazy.
test(websocket): cover `setExtraHTTPHeaders` and `locale` on the hand…