With bug 1595697 we will get the basic implementation of `Network.setUserAgentOverride`, which only handles the user agent. This bug covers the addition of the `acceptLanguage` options. Similar to the `usageAgent` the preferred language can be set via a preference. In this case it will be `intl.accept_languages`. It's a string preference and accepts a list of languages separated by comma. Given that the input is a string it should directly be set. The file to make the changes can be found at: https://searchfox.org/mozilla-central/source/remote/domains/parent/Network.jsm To get started please read: https://firefox-source-docs.mozilla.org/remote/index.html I will set this as mentored bug once bug 1595697 has been landed.
Bug 1595706 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
With bug 1595697 we will get the basic implementation of `Emulation.setUserAgentOverride`, which only handles the user agent. This bug covers the addition of the `acceptLanguage` option. Similar to the `userAgent` the preferred language can be set via a preference. In this case it will be `intl.accept_languages`. It's a string preference and accepts a list of languages separated by comma. Given that the input is a string it should directly be set. The files to make the changes can be found at: https://searchfox.org/mozilla-central/source/remote/domains/parent/Emulation.jsm https://searchfox.org/mozilla-central/source/remote/test/browser/emulation/browser_setUserAgentOverride.js To get started please read: https://firefox-source-docs.mozilla.org/remote/index.html