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
9 changed files with 31 additions and 8 deletions

View File

@@ -169,6 +169,11 @@ void ViewImplementation::set_preferred_motion(Web::CSS::PreferredMotion motion)
client().async_set_preferred_motion(page_id(), motion);
}
void ViewImplementation::set_preferred_languages(Vector<String> preferred_languages)
{
client().async_set_preferred_languages(page_id(), move(preferred_languages));
}
void ViewImplementation::set_enable_do_not_track(bool enable)
{
client().async_set_enable_do_not_track(page_id(), enable);