LibWeb: Make preferred languages configurable

This also changes fetch to use the preferred languages for the
Accept-Language header.
This commit is contained in:
Jamie Mansfield 2024-07-23 21:10:24 +01:00 committed by Tim Ledbetter
parent 2cfc1873c0
commit 2ca8fd1832
Notes: github-actions[bot] 2024-07-25 10:39:58 +00:00
9 changed files with 31 additions and 8 deletions

View file

@ -59,6 +59,7 @@ ResourceLoader::ResourceLoader(NonnullRefPtr<ResourceLoaderConnector> connector)
: m_connector(move(connector))
, m_user_agent(MUST(String::from_utf8(default_user_agent)))
, m_platform(MUST(String::from_utf8(default_platform)))
, m_preferred_languages({ "en-US"_string })
, m_navigator_compatibility_mode(default_navigator_compatibility_mode)
{
}