mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 03:36:36 +00:00
LibWebView: Add a command line option to override the User-Agent
This commit just adds a command line option to case-insensitively accept a User-Agent name to use as the UA override. The UIs will individually need to make use of this option.
This commit is contained in:
parent
a6bf253602
commit
a04327a0c9
Notes:
github-actions[bot]
2024-08-29 12:06:59 +00:00
Author: https://github.com/trflynn89
Commit: a04327a0c9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1215
Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 27 additions and 0 deletions
|
@ -7,10 +7,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/StringView.h>
|
||||
|
||||
namespace WebView {
|
||||
|
||||
extern OrderedHashMap<StringView, StringView> const user_agents;
|
||||
|
||||
Optional<StringView> normalize_user_agent_name(StringView);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue