Chrome is deprecating the User Agent string

Off-topic discussion/chat/argue area with special rules of engagement.
Forum rules
The Off-Topic area is a general community discussion and chat area with special rules of engagement.

Enter, read and post at your own risk. You have been warned!
While our staff will try to guide the herd into sensible directions, this board is a mostly unrestricted zone where almost anything can be discussed, including matters not directly related to the project, technology or similar adjacent topics.

We do, however, require that you:
  • Do not post anything pornographic.
  • Do not post hate speech in the traditional sense of the term.
  • Do not post content that is illegal (including links to protected software, cracks, etc.)
  • Do not post commercial advertisements, SEO links or SPAM posts.
We also ask that you keep strongly polarizing topics like politics and religion to a minimum. This forum is not the right place to discuss such things.
Please do exercise some common sense. How you act here will inevitably influence how you are treated elsewhere.
User avatar
Lootyhoof
Themeist
Themeist
Posts: 1585
Joined: 2012-02-09, 23:35
Location: United Kingdom

Chrome is deprecating the User Agent string

Post by Lootyhoof » 2020-01-14, 16:14

...only to replace it with something else:

https://groups.google.com/a/chromium.or ... e4tQNLCgAJ

Isn't feature churn fun? :)

User avatar
Moonraker
Board Warrior
Board Warrior
Posts: 1873
Joined: 2015-09-30, 23:02
Location: uk.

Re: Chrome is deprecating the User Agent string

Post by Moonraker » 2020-01-14, 16:31

Which in turn will have a detrimental effect on websites.?
user of multiple puppy linuxes..upup,fossapup.scpup,xenialpup..... :thumbup:

Pale moon 29.4.1

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38408
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Chrome is deprecating the User Agent string

Post by Moonchild » 2020-01-14, 17:28

The irony is that Google is one of the worst offenders of the bad User Agent Sniffing practice :D
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2482
Joined: 2018-05-05, 13:29

Re: Chrome is deprecating the User Agent string

Post by vannilla » 2020-01-14, 17:56

I only read the proposal (i.e. the first message in the linked discussion), but it seems to simply be a more complex version of the existing User Agent string.
Aside from actually implementing it, I doubt it will magically make websites more compatible. If anything, I'm expecting the worst in that one of those hints is something like the browser name and websites are going to explicitly check on that rather than actual features given by the other hints.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5690
Joined: 2015-12-09, 15:45

Re: Chrome is deprecating the User Agent string

Post by moonbat » 2020-01-14, 22:10

Gotta love how casually they list out a timetable to implement this. No need to submit it to a standards body when you control the standard itself. Microsoft during the IE6 days seems so naive and cuddly by comparison.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1619
Joined: 2018-10-28, 19:56
Location: Georgia

Re: Chrome is deprecating the User Agent string

Post by athenian200 » 2020-01-14, 22:50

My understanding is that they're planning to freeze it, not simply remove it. Also, it seems that near the end of the article, they say that relying on feature detection would be a better practice than UA sniffing. I can't really find fault with that argument.

Not that I trust their intentions here, but most of what they're saying seems technically valid. I do have a bad feeling about the new UA-CH standard they're proposing here, though.
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind

Andrew Herbert

Re: Chrome is deprecating the User Agent string

Post by Andrew Herbert » 2020-01-14, 23:16

I guess it's a good thing. Maybe some Firefox fanboys will see that since Google controls web standards (and Mozilla), it doesn't make much difference for Google if websites use UA sniffing. Therefore, using Firefox won't save the web. :coffee:

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5690
Joined: 2015-12-09, 15:45

Re: Chrome is deprecating the User Agent string

Post by moonbat » 2020-01-15, 00:01

Andrew Herbert wrote:
2020-01-14, 23:16
Therefore, using Firefox won't save the web. :coffee:
Off-topic:
That ship sailed in 2011 with the introduction of Australis.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

New Tobin Paradigm

Re: Chrome is deprecating the User Agent string

Post by New Tobin Paradigm » 2020-01-15, 01:15

Australis happened in 2014.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2482
Joined: 2018-05-05, 13:29

Re: Chrome is deprecating the User Agent string

Post by vannilla » 2020-03-12, 16:41

This became a draft: https://wicg.github.io/ua-client-hints/

I like section 5.2, it really speaks a lot about trends in web development.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38408
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Chrome is deprecating the User Agent string

Post by Moonchild » 2020-03-12, 17:07

And of course 4.1 is there to log-roll the deprecation of http.

And ultimately it makes no difference if you're just replacing it with something else -- they will just sniff the client-hints and do the same checks anyway they are doing now and it is in NO way improving anything -- just making change for the sake of change.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

bgstack15
Fanatic
Fanatic
Posts: 121
Joined: 2018-01-22, 23:04

Re: Chrome is deprecating the User Agent string

Post by bgstack15 » 2020-03-12, 20:39

Egh. Now there's even more fields that server admins have to parse to make sure their pages are served in some semblance of readability because the devs got weird with their web-based product. It was bad enough with the IE 4 useragent check for apache back in the day.

John connor

Re: Chrome is deprecating the User Agent string

Post by John connor » 2020-03-12, 21:27

Without reading all that, how do websites use a Chrome UA in the future to either direct them to their mobile version or their desktop version of a website? I know in CloudFlare there is an option to do just that.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38408
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Chrome is deprecating the User Agent string

Post by Moonchild » 2020-03-12, 21:57

John connor wrote:
2020-03-12, 21:27
how do websites use a Chrome UA in the future
By checking different headers that have the same info (formatted differently) that's currently in the user-agent string.
And if you want to know more, you DO have to read it.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

John connor

Re: Chrome is deprecating the User Agent string

Post by John connor » 2020-03-13, 11:46

What are the different headers? I'm wondering now that even though I forge my UA to look like the latest FF and Win 10, I still have a hell of a time with Recaptcha and it simply won't solve under PM. So maybe, just maybe Google is grabbing some other header and if I can modify those as well perhaps I won't get the Recaptcha discrimination crap. And no, I'm not staying logged into a Google account just for the sake of a once in a while Recaptcha. Especially since I always log out of websites and never store cookies and cache.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2482
Joined: 2018-05-05, 13:29

Re: Chrome is deprecating the User Agent string

Post by vannilla » 2020-03-13, 12:10

The list of the new UA hints headers is located here: https://wicg.github.io/ua-client-hints/
It also has a number of useful informations.

John connor

Re: Chrome is deprecating the User Agent string

Post by John connor » 2020-03-13, 12:22

Good grief that's a lot of crap that this code stupid user has no idea about. Would it make sense to perhaps have someone crafty enough to code up a Pale Moon only extension to satisfy all these headers so that Google will shut up and just allow the solving of Recaptcha. :) If the headers are the only metric that Google is using, then Recaptcha problems would be a thing of the past with PM. As it stands now I always have to pull out my plain vanilla FF install just to get past a form entry guarded with a Recaptcha. And sometimes I'm met with one and not expect it, so all that I entered into the website with PM was a waste of time only to have to launch FF to enter the Info. into the form once again so I can pass Recaptcha.

I really wish websites wouldn't gravitate towards Google crap for their ant-spam bot needs. It's one reason I'll never use it for my site. And I saw my captcha in action block potential bad traffic in the access logs. They'd get a 200 and that was it. :lol: Yet this captcha isn't very code complex or anything. Just word arrangements using a mouse. eBay has their own which is not Google crap thank God.

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1324
Joined: 2015-09-08, 22:54
Location: 127.0.0.1

Re: Chrome is deprecating the User Agent string

Post by Isengrim » 2020-03-13, 12:35

John connor wrote:
2020-03-13, 12:22
If the headers are the only metric that Google is using, then Recaptcha problems would be a thing of the past with PM.
UA isn't the only thing Google uses to determine how reCaptcha functions. If the new "UA hints" can still be spoofed (i.e. a user, bot, or attacker can put whatever they want in those fields regardless of whether the information is correct) then I doubt this proposal will affect reCaptcha either.

I believe the intent of this UA hint system is to simply make the UA more machine-readable than the current mess we have. Whether it really solves anything remains to be seen, as it mostly depends on whether sites respect or ignore the new hints.
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

New Tobin Paradigm

Re: Chrome is deprecating the User Agent string

Post by New Tobin Paradigm » 2020-03-13, 13:23

I think it is to negate our site specific user agent override system because it doesn't resolve or fix anything for the monoculture because the five flavors of chrome are gonna support everything all the time within a week or two of each other regardless.

Feature detection remains the only real solution and almost no one does this.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38408
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Chrome is deprecating the User Agent string

Post by Moonchild » 2020-03-13, 15:40

New Tobin Paradigm wrote:
2020-03-13, 13:23
Feature detection remains the only real solution and almost no one does this.
I was hopeful that Chrome deprecating the UA would mean a push for sniffers to do feature detections instead but no... having the "client hints" instead just means they will be sniffing THAT instead and still not do feature detection.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite