glitch-soc / mastodon

A glitchy but lovable microblogging server
https://glitch-soc.github.io/docs/
GNU Affero General Public License v3.0
704 stars 182 forks source link

GNOME Web is recognized as "Safari on Linux" #2866

Open luciofstars opened 1 month ago

luciofstars commented 1 month ago

Steps to reproduce the problem

  1. Use GNOME Web to log into tech.lgbt (and possibly other instances)
  2. Check your active sessions
  3. GNOME Web is reported as "Safari on Linux" ...

Expected behaviour

GNOME Web should be reported as GNOME Web or Epiphany (or at the very least some generic WebKit browser)

Actual behaviour

GNOME Web is detected as "Safari on Linux"

Detailed description

I recently (about 10 minutes ago) applied for an account on tech.lgbt. While I clicked ADHD-ly around the interface waiting for my account to be approved, I noticed that my current session (GNOME Web on the Vanilla OS 2 Orchid Live ISO, long story: I tried to install Ubuntu to try out TPM-backed FDE and got a corrupted ISO, which then naturally had a Broken (TM) installer, which ended up wiping my SSD and then royally breaking -- Vanilla OS was the only USB I had lying around...) was reported as "Safari on Linux":

Screenshot from 2024-10-05 22-52-44

In all honesty, this is probably an upstream Mastodon issue with how they're detecting/labeling browsers. GNOME Web and Safari run on the same engine, and almost nobody bothers using GNOME Web, so it probably just slipped through. That said, I was worried that upstream would disregard this on the grounds of "your instance doesn't run Mastodon, it runs glitch-soc", so I'm reporting it here to "cover my bases", so to speak.

Mastodon instance

tech.lgbt

Mastodon version

I don't know. (account hasn't been approved yet, sorry! I'll get back to this when I can grab the version.)

Browser name and version

GNOME Web 46.3

Operating system

Vanilla OS 2 (live ISO)

Technical details

No response

ClearlyClaire commented 1 month ago

Hi! This is an upstream issue, please report it there!

alice-mkh commented 2 weeks ago

GNOME Web and Safari run on the same engine, and almost nobody bothers using GNOME Web, so it probably just slipped through.

As a person formerly co-maintaining Epiphany: it purposefully doesn't add anything to the user agent other than the "standard" safari identifier - otherwise you'd see a lot of websites showing you "unsupported browser". With "Safari on Linux" they would in a lot of cases only check the "Safari" part and be okay with it.

So you can only really derive WebKit from this UA, not much else. That's unfortunate, but preferable to whatsapp web etc not working at all.

luciofstars commented 2 weeks ago

oh wow it's the libadwaita person, hello.