testing CH-UA

48 views
Skip to first unread message

Ян Стахеев

unread,
Feb 2, 2022, 1:21:36 PM2/2/22
to blink-dev
Hi! 
I'm looking for a way to test Client Hints and to understand how CH will work on my site before UA will be reduced. For now I use  #reduce-user-agent flag  disabling UA. Is blocking UA by the flag is enought to see the impact of UA reduction?
Also I can't fully model the situation in ChromeDev tools. When emulating the mobile version in ChromeDev tools, CH-UA are not displayed at all. Could you advise me, please, the reliable way I could test disabling the User-Agent and using CH on my site in order to understand that all ads, blocks, etc. will work correctly after disabling UA? Or just using the flag is pretty enought?
Thank you! :)

Ali Beyad

unread,
Feb 2, 2022, 2:41:31 PM2/2/22
to Ян Стахеев, blink-dev
Hello:

On Wed, Feb 2, 2022 at 1:21 PM Ян Стахеев <stak...@gmail.com> wrote:
Hi! 
I'm looking for a way to test Client Hints and to understand how CH will work on my site before UA will be reduced. For now I use  #reduce-user-agent flag  disabling UA. Is blocking UA by the flag is enought to see the impact of UA reduction?

Yes, if you enable chrome://flags#reduce-user-agent, your browser will send the reduced UA string to all sites it visits.  Another option if you're a site developer is to participate in our UA reduction origin trial: https://developer.chrome.com/blog/user-agent-reduction-origin-trial/

Also I can't fully model the situation in ChromeDev tools. When emulating the mobile version in ChromeDev tools, CH-UA are not displayed at all. Could you advise me, please, the reliable way I could test disabling the User-Agent and using CH on my site in order to understand that all ads, blocks, etc. will work correctly after disabling UA? Or just using the flag is pretty enought?

If you just want to test your site from your browser, enabling chrome://flags#reduce-user-agent and changing your site to send Accept-CH headers with the client hints you want should be enough.  If you want to test your site with others who visit it, you can participate in the origin trial linked to above.

Hope this helps!

Thank you! :)

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b5da6ca4-752a-40fc-908c-bc902abe12b7n%40chromium.org.

Mike Taylor

unread,
Feb 2, 2022, 3:40:00 PM2/2/22
to Ян Стахеев, blink-dev, Ali Beyad
Привет Ян!

If using the devtools mobile emulation, you can add a custom device and there is a toggle to open the "User agent client hints" section where you can add header values: https://i.imgur.com/9vazymM.png. We should probably add sensible defaults to the mobile emulation options, I filed https://bugs.chromium.org/p/chromium/issues/detail?id=1293477 to track that work.

thanks,
Mike

Ян Стахеев

unread,
Feb 3, 2022, 1:02:50 PM2/3/22
to blink-dev, mike...@chromium.org, abe...@chromium.org, Ян Стахеев
Thank you for this clarifacation!

среда, 2 февраля 2022 г. в 23:40:00 UTC+3, mike...@chromium.org:
Reply all
Reply to author
Forward
0 new messages