Update "emulation.setLocaleOverride" to also override "Accept-Language" header.#1020
Update "emulation.setLocaleOverride" to also override "Accept-Language" header.#1020
Conversation
b92c833 to
158790a
Compare
I would expect the emulated locale not to be distinguishable from the one selected by the user, but this behavior creates an observable difference in emulated and non-emulated locale behavior. |
|
Also the Fetch spec adds In this case overriding the user's 'Accept-Language' headers can mask some issues, like I believe the better approach would be to define "an appropriate |
Yeah, I think it makes sense. I've created a PR for the fetch spec. I've reused the hook added for @sadym-chromium, could you also create an issue for this feature? (I need for the PR check list) |
In the relation with "network.setExtraHeaders", my approach was that "emulation.setLocaleOverride" always takes precedent and overrides the values which might be set with "network.setExtraHeaders", since clients, when they use "emulation.setLocaleOverride", probably want locale values to be aligned across APIs. But let me know if I missed some use case scenarios.
Preview | Diff