mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
Browser+LibWeb: Add support for spoofing the browser user agent
This is helpful when testing certain sites like twitter.com which display differently based on the user agent.
This commit is contained in:
parent
aab99d5945
commit
bc9cd55da4
Notes:
sideshowbarker
2024-07-18 20:19:57 +09:00
Author: https://github.com/IdanHo
Commit: bc9cd55da4
Pull-request: https://github.com/SerenityOS/serenity/pull/6317
5 changed files with 59 additions and 1 deletions
|
@ -48,7 +48,7 @@ ResourceLoader& ResourceLoader::the()
|
|||
|
||||
ResourceLoader::ResourceLoader()
|
||||
: m_protocol_client(Protocol::Client::construct())
|
||||
, m_user_agent("Mozilla/4.0 (SerenityOS; x86) LibWeb+LibJS (Not KHTML, nor Gecko) LibWeb")
|
||||
, m_user_agent(default_user_agent)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue