Skip to content

Commit

Permalink
LibWeb: Add a default for the navigator's languages
Browse files Browse the repository at this point in the history
This will mean that non-Qt frontends don't return an empty array.

(cherry picked from commit 7b105e1ecfe23d6954c8abae6735cf655ff57204)
  • Loading branch information
jamierocks authored and nico committed Nov 5, 2024
1 parent a225b9c commit 58f9631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/Loader/ResourceLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class ResourceLoader : public Core::EventReceiver {
NonnullRefPtr<ResourceLoaderConnector> m_connector;
String m_user_agent;
String m_platform;
Vector<String> m_preferred_languages;
Vector<String> m_preferred_languages = { "en"_string };
NavigatorCompatibilityMode m_navigator_compatibility_mode;
bool m_enable_do_not_track { false };
Optional<JS::GCPtr<Page>> m_page {};
Expand Down

0 comments on commit 58f9631

Please sign in to comment.