Commit Graph

4 Commits

Author SHA1 Message Date
Andreas Kling
c0c8d35786 LibWeb: Add more lies to the User-Agent string for compatibility
We recently added "Chrome/140.0.0.0" to our User-Agent string which
fixed an issue with some web servers ignoring or throttling us.

Unfortunately we were still being served crappy version of many
major websites.

This patch improves the situation by adding more lies, specifically
"AppleWebKit/537.36 Safari/537.36". This gives us modern versions
of sites like Google, GMail, Instagram, and many more.
2026-01-26 11:31:42 +01:00
Andreas Kling
c505240401 LibWeb: Put "Chrome" in the default User-Agent string for compatibility
This is a sad compatibility hack, but it's unfortunately necessary for
many prominent websites to work in Ladybird.

With our previous UA string, we've observed things like:

- Getting HTTP 403 for every request
- Being served "your browser is not supported" pages
- Being served outdated/broken content
- Extreme network throttling
- Other annoyances that magically go away if we change the UA string

By playing along with the silly game and putting Chrome in the string,
most such problems disappear instantly and anyone trying to use Ladybird
has a much better time.

Note that Ladybird *is* still in the UA string as well, so you can
easily identify us if you want to.
2026-01-17 09:30:16 +01:00
Andreas Kling
7e7ef058a6 LibWeb: Move NavigatorCompatibilityMode enum to its own file
This makes it less painful to edit UserAgent.h (due to recompiles).
2026-01-17 09:30:16 +01:00
Timothy Flynn
93712b24bf Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00