Questions tagged [client-hints]
28 questions
1
vote
1 answer
What are the available options to emulate devices using driver.emulateDevice()
I'd like to use Chrome to emulate different devices to run my frontend tests on different emulators. in the documentation, I found the following example
And driver.emulateDevice(375, 812, 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X)…

dzoku
- 67
- 4
1
vote
1 answer
Testcafe tests fail due to new headers **`sec-ch-ua` and `sec-ch-ua-mobile`** added on Chrome Version 89.0.4389.72
I'm running a basic automated testcafe test that clicks a button (which triggers an API) and waits for a response to be displayed on the page so the test can continue. The website just fails with a 500 error coming from that API call just after…

Esteban Balvin
- 117
- 3
- 13
1
vote
1 answer
UserAgent will be deprecated - Impacts on GXT
Last week, we received information that the user-agent has its days counted.
Google announced that it will get rid of the User-Agent String in Chrome and Mozilla/Microsoft support the idea.
I'm wondering what will be the impact on that for GXT…

micgala
- 86
- 6
1
vote
1 answer
does it make sense to server-push woff2?
I'm reading quite a bit about http2's server-push. Also did some experimenting (on a beginner's level)...
Well, my question is: Does it make sense to server-push woff2 web-fonts? (since not every browser uses them), and, is there a method to push…

David Braun
- 409
- 4
- 13
1
vote
1 answer
Alternative to HTTP Client Hints
I am wanting to implement a solution where a server app returns an image that is just large enough to cover the entire device screen in any given orientation.
I have been learning a little about the HTTP Client Hints method where the browser will…

abagshaw
- 6,162
- 4
- 38
- 76
1
vote
1 answer
How google Analytics detect android device
I know GA using UserAgent string to detect device id or brand name for an android device. But i wonder do Google using WURLF library or they building and device's useragent database for themselves.
Because our company has an android device that…

redwind
- 161
- 1
- 13
0
votes
0 answers
Sending Client hint headers to API server
It seems with the ClientHint API being newer, there isn't a lot of information available on this topic. I've read dozens of articles and, at this point, I'm missing some key details in the implementation requirements.
Here is the scenario. We have…

Jacob Thomason
- 3,062
- 2
- 17
- 21
0
votes
1 answer
Chromium Client Hints: how to set several urls in Delegate-CH meta tags?
I have set the meta tags like this:

Stiegi
- 1,074
- 11
- 22
0
votes
1 answer
how to mock navigator.userAgentData.getHighEntropyValues with jest
I would like to mock the resolved value of navigator.userAgentData.getHighEntropyValues in my test to be a sample object.
How can I do this?
I tried:
beforeEach(() => {
jest.mock(global.navigator.userAgentData);
});
it('uaFullVersion is…

mark
- 4,678
- 7
- 36
- 46
0
votes
1 answer
Opt in CH header on first request
I am trying to get client hint headers in PHP. These need to be opted in. I do that using header() function. After that I read the header.
Now here is the problem: the first time I open the website it is not able to read that header. If I refresh…

Andris Jefimovs
- 689
- 6
- 17
0
votes
0 answers
How can one detect browser version via javascript WITHOUT using `navigator` and `navigator.userAgent`?
tldr; Can one get the browser version from the front end without using navigator strings or Client Hints?
So with Google's announcement about freezing the navigator.userAgent string, I've been tasked with going through a bunch of javascript…

Jason Lydon
- 7,074
- 1
- 35
- 43
0
votes
1 answer
Can cloudinary know image container size of frontend and deliver image accordinly ?
I am aware we can get different quality images by cloudinary by specifying in the URL, but is it possible to get it done automatically?
can cloudinary know frontend image container size automatically & deliver the image accordingly?

Shivam Singh
- 1,671
- 1
- 11
- 25
-1
votes
1 answer
How to get Client device information in asp.net, c#
I am stuck while fetching client side information of their device, I didn't want to show my server device info to client.
I want whoever visit my site I get their mobile/laptop name, model, OS version, and all other info.

Bilal Khan
- 11