TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

User Agent Changes

159 pointsby CrazedGeekover 5 years ago

20 comments

pornelover 5 years ago
Congratulations Google, you did it! You killed the User-Agent header.<p>The HTML spec already requires all browsers to report themselves as Netscape in the Netscape-era `navigator` object:<p><pre><code> appCodeName - Must return the string &quot;Mozilla&quot;. appName - Must return the string &quot;Netscape&quot;. product - Must return the string &quot;Gecko&quot;. </code></pre> So a few more &quot;oopses&quot; from Google products and the next spec will end up saying:<p><pre><code> User-Agent - Must be equal to the string &quot;Mozilla&#x2F;5.0 AppleWebKit&#x2F;537.36 (KHTML, like Gecko) Chrome&#x2F;79.0.3945.79&quot;</code></pre>
评论 #21778259 未加载
评论 #21779413 未加载
评论 #21778777 未加载
评论 #21778704 未加载
评论 #21778698 未加载
cowmoo728over 5 years ago
Can we take a moment to appreciate how obtuse UA strings are? I mean really, the user agent<p>Mozilla&#x2F;5.0 (X11; Linux x86_64) AppleWebKit&#x2F;537.36 (KHTML, like Gecko) Chrome&#x2F;78.0.3904.99 Safari&#x2F;537.36 Vivaldi&#x2F;2.9.1705.41<p>is almost laughable for a strange collection of historical reasons. The history of UA strings has come up before here:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16525559" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16525559</a><p>When is a browser going to just ditch the cruft and present something sensible?
评论 #21778386 未加载
评论 #21778379 未加载
评论 #21778701 未加载
评论 #21780227 未加载
评论 #21779165 未加载
chrisweeklyover 5 years ago
No mention of the UA string would be complete without this 2008 gem, one of my all-time favorite bits of geek lore &#x2F; culture:<p><a href="https:&#x2F;&#x2F;webaim.org&#x2F;blog&#x2F;user-agent-string-history&#x2F;" rel="nofollow">https:&#x2F;&#x2F;webaim.org&#x2F;blog&#x2F;user-agent-string-history&#x2F;</a>
chrismmayover 5 years ago
I have seen a few cases where users complain that our mobile app (which runs in a webview inside a native app) doesn&#x27;t work for them. When we look in the server logs, we find a user agent string that indicates a user is running iOS 11.4.1. My theory is that the older version indicates that the client&#x27;s mobile device has run out of storage space. The device can&#x27;t download the update to iOS 13.x since there is insufficient storage available on the device.<p>Even if the user frees-up some space on their device, not enough to upgrade to iOS 13.x, but enough to run our app theoretically, our app still fails to run for them. Uninstalling and reinstalling the native app that contains the webview that runs our web app doesn&#x27;t solve the problem either. My theory is that there are truncated versions of some of our javascript files left over from when the device ran out of storage that don&#x27;t get re-downloaded even when storage is later made available....<p>I&#x27;ve been telling people to free-up space on their device and upgrade it to iOS 13 to fix the problem. I sure hope that works...<p>If all user agents become a fixed string, how on god&#x27;s green earth will we troubleshoot problems reported by users? I sure hope we get another header that will tell us the real client platform information so we can eventually repeat this exercise after another few years...<p>This scenario is complicated, but my point is really that of course we need a User Agent to accurately tell what platform the client is running for entirely legitimate reasons and mega corporations should not do patently evil things to make the lives of developers and support people even more frustrating than they already are. There should be laws against things like this. It really is fraud to change something like the User Agent string to a constant value that is incorrect, and it WILL lead to damaging events in real people&#x27;s lives if it happens. People could be fired for being led down the wrong investigative path when troubleshooting problems. From the article, it sounds like significant damage has already been done.
评论 #21780985 未加载
评论 #21779732 未加载
评论 #21780283 未加载
boring_twentiesover 5 years ago
I&#x27;m surprised Slack isn&#x27;t on the list, it refuses to work with Waterfox at least (which only appends its name to the Firefox user agent it&#x27;s based on), and presents a stupid and condescending lecture about why it&#x27;s for your own good, to boot.
Scoundrellerover 5 years ago
Heh, I remember my university wouldn’t let you login to wifi without having their site-licensed anti-malware software.<p>So I changed my UA to a Mac and got online without it.
foucover 5 years ago
Does anyone think that User Agent should be killed off?<p>If we had no way of detecting between browsers that would lead to a much more consistent cross-browser experience in the long run and not allow one browser&#x27;s dominance to affect the internet experience for the rest.
评论 #21779649 未加载
评论 #21782040 未加载
Tepixover 5 years ago
I think they went exactly in the wrong direction. Given that they have a very small market share it is understandable.<p>However, what if the latest Firefox or Chrome would just have a user string &quot;Chrome&#x2F;80.0 (Windows 10; Win64; x64)&quot;?<p>And if you run into a problem you get a button that reverts to the old horrible piece of junk.<p>Now that robots.txt is established and security.txt is almost there, the next thing we need is a contact.txt that browsers can use to offer a button that will allow sending bug reports to webmasters without having to search the site for the contact address.
评论 #21780874 未加载
bambaxover 5 years ago
&gt; <i>Every other site will get a User Agent that appears to be identical to Chrome. There is a downside for us in doing this since Vivaldi will effectively disappear from third party rankings of browser popularity (we will be indistinguishable from Chrome) but that is a price we will happily pay to provide the best website compatibility for our users.</i><p>Why not choose a FF UA string then? At least they would be doing the world a favor!!
评论 #21780357 未加载
评论 #21780984 未加载
ravenstineover 5 years ago
The user-agent header was a huge mistake.
评论 #21779453 未加载
3xblahover 5 years ago
Comments here on User-Agent fail to mention how browsers can be distinguished by the headers they send and the ordering of those headers. For example, the User-Agent header might be the 9th header in a Chrome browser while in a Firefox browser it might be the 2nd header. By default, neither Chrome nor Firefox may send exactly the same number of headers.
bullenover 5 years ago
User-Agent should be able to be set by the page following the spec. there is a chromium bug since 2015 that covers it but Google doesn&#x27;t care:<p><a href="https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=571722" rel="nofollow">https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=571722</a><p>which is blocked by<p><a href="https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=595993" rel="nofollow">https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=595993</a><p>which is blocked by<p><a href="https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=963260" rel="nofollow">https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=963260</a>
评论 #21779609 未加载
Alohaover 5 years ago
This is more of an asking the assembled a question.. why should I use vivaldi?
评论 #21779356 未加载
Dolores12over 5 years ago
That is so bad idea. Why choose Chrome? Let it be Firefox? Web analytics will show even higher numbers for Chrome, hence developers would not bother to test anywhere but in Chrome.
评论 #21780203 未加载
dredmorbiusover 5 years ago
Everybody lies:<p><a href="https:&#x2F;&#x2F;noti.st&#x2F;nielsleenheer&#x2F;73y43P&#x2F;slides" rel="nofollow">https:&#x2F;&#x2F;noti.st&#x2F;nielsleenheer&#x2F;73y43P&#x2F;slides</a>
thrower123over 5 years ago
This is indicative of the kind of world where we had to jump from Window 8 to Windows 10 because of shitty user-agent parsing .
agluszakover 5 years ago
Oh, these sweet monopolistic practices...
dethosover 5 years ago
Good move. Other browsers should follow.
tyingqover 5 years ago
I wonder if they debated whether to imitate Safari or Mozilla or Edge instead.
评论 #21778690 未加载
dependenttypesover 5 years ago
The question is, why ever use a unique user agent?