this post was submitted on 20 Jan 2024
1372 points (98.7% liked)

Firefox

17967 readers
111 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 5 years ago
MODERATORS
 

Everything worked perfectly as it always does.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 10 months ago

It's not that simple. A lot of browser "standards" are standards in that they achieve the same end result, but for whatever reason they take a different approach to getting to that result, so you often end up needing browser specific code. This is especially the case with CSS, which is why so many "standard" CSS properties still need a "-moz" or a "-webkit" version as well, decades in. The only way the website can know if they're running the correct code for that browser is if they know what browser is being used, hence user agents. This is the reason that pop ups like this exist at all; sure they were lazy as fuck to not properly support Firefox, absolutely, but they wouldn't have needed to support Firefox specifically at all if browsers could just get their shit together and fix the "standards".

I would fucking cry tears of joy if browsers could standardize enough that writing browser specific code and needing the user agent was a thing of the past, but I really don't see it happening any time soon.