From March 17th, 2023 (or whatever) all user agent strings are now “WebBrowser/1.0” until the end of time.
Just force the switch to better methods.
From March 17th, 2023 (or whatever) all user agent strings are now “WebBrowser/1.0” until the end of time.
Just force the switch to better methods.
I see these kinds of suggestions from technologists surprisingly frequently, and I always wonder if it's a serious suggestion and if the person has ever worked on anything with non-programmers as users.
The link explains the problem really well.
User agent sniffing was the only option.
We have a lot of end users on older iPads that can't upgrade to a newer browser.
These users are the general public, so you can't force them to upgrade devices.
We will have to continue to do the user agent sniffing for years to come.
> While the double cookie approach is what is recommended by Google, the ASP.NET team concluded otherwise - they found that going with a user-agent sniffing approach would be the safer approach. User-agent sniffing is hard to get right. It's hard to cover all the relevant browsers, and it's hard to do so in a way where you can be reasonably sure it won't break in user-agents of the future. But when someone gets it right, that becomes a readily copiable solution that anyone can use.
Why can this not be solved with http version numbers instead of a method that allows Google to maintain a seperate standard that it forces developers to switch between with user agent strings?
Or, why any other browser is the new IE. /s
> Just force the switch to better methods.
I always thought software developers should have the needs of users in mind, but it turns out it's the other way around.
* Why do you think we can make our users upgrade? We're small, just one of dozens of websites they use per day. And in our line of business, this usually means losing clients (who, BTW, are usually not the end-users).
* How would we even be able to tell them they should upgrade if we can't test the version of their browser?
* It was Chrome 93 to 95. The bug existed for three months in all versions of Chrome. They couldn't update.
So what's the point of sniffing UA? What was your fix?
Parsing out the UA header mess is a disaster.
Another example, Android webview 69 on certain devices has a bug that will take down the whole app. There is no way you can workaround it without ua sniffing. Because a single try will take the whole app away.
If you feature test for browser crashes, people are going to think it's your site, not their browser.
`if (someFeature && someFeature.someSpecificMethod)...`
Or you can try/catch if you are less sympathetic to inferior tech.