From bc71769756318089a13c9c24075f0d2ad4e052a3 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Thu, 7 Nov 2024 12:45:14 +0100 Subject: [PATCH 1/4] Add user agent client hints --- features/{draft/spec => }/ua-client-hints.yml | 5 ++--- features/{draft/spec => }/ua-client-hints.yml.dist | 0 2 files changed, 2 insertions(+), 3 deletions(-) rename features/{draft/spec => }/ua-client-hints.yml (79%) rename features/{draft/spec => }/ua-client-hints.yml.dist (100%) diff --git a/features/draft/spec/ua-client-hints.yml b/features/ua-client-hints.yml similarity index 79% rename from features/draft/spec/ua-client-hints.yml rename to features/ua-client-hints.yml index 64b10fa59de..83da67b0044 100644 --- a/features/draft/spec/ua-client-hints.yml +++ b/features/ua-client-hints.yml @@ -1,6 +1,5 @@ -draft_date: 2024-10-21 -name: User-Agent Client Hints -description: TODO +name: User agent client hints +description: User agent (UA) client hint headers allow a server to vary responses based on the user agent (browser), operating system, and device. spec: https://wicg.github.io/ua-client-hints/ compat_features: - api.Navigator.userAgentData diff --git a/features/draft/spec/ua-client-hints.yml.dist b/features/ua-client-hints.yml.dist similarity index 100% rename from features/draft/spec/ua-client-hints.yml.dist rename to features/ua-client-hints.yml.dist From 94d27a0cb0c9cc6b3b752f33b2085c5ae837f056 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Tue, 12 Nov 2024 11:36:55 +0100 Subject: [PATCH 2/4] Update features/ua-client-hints.yml --- features/ua-client-hints.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/ua-client-hints.yml b/features/ua-client-hints.yml index 83da67b0044..cbec981ec78 100644 --- a/features/ua-client-hints.yml +++ b/features/ua-client-hints.yml @@ -1,5 +1,5 @@ name: User agent client hints -description: User agent (UA) client hint headers allow a server to vary responses based on the user agent (browser), operating system, and device. +description: The `Sec-CH-UA` HTTP request header and the `navigator.userAgentData` API expose browser and platform information used to vary responses and application logic. User agent client hints are similar to user agent strings but more privacy-preserving and more robust. spec: https://wicg.github.io/ua-client-hints/ compat_features: - api.Navigator.userAgentData From dbcb644d0345c63b627b2c916bf3fbf024ca2657 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Tue, 12 Nov 2024 11:42:11 +0100 Subject: [PATCH 3/4] Add more keys --- features/ua-client-hints.yml | 7 +++++++ features/ua-client-hints.yml.dist | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/features/ua-client-hints.yml b/features/ua-client-hints.yml index cbec981ec78..7b1aa6162ec 100644 --- a/features/ua-client-hints.yml +++ b/features/ua-client-hints.yml @@ -11,6 +11,13 @@ compat_features: - api.NavigatorUAData.platform - api.NavigatorUAData.toJSON - api.WorkerNavigator.userAgentData + - http.headers.Accept-CH.Sec-CH-UA + - http.headers.Accept-CH.Sec-CH-UA-Arch + - http.headers.Accept-CH.Sec-CH-UA-Full-Version + - http.headers.Accept-CH.Sec-CH-UA-Mobile + - http.headers.Accept-CH.Sec-CH-UA-Model + - http.headers.Accept-CH.Sec-CH-UA-Platform + - http.headers.Accept-CH.Sec-CH-UA-Platform-Version - http.headers.Sec-CH-UA - http.headers.Sec-CH-UA-Arch - http.headers.Sec-CH-UA-Bitness diff --git a/features/ua-client-hints.yml.dist b/features/ua-client-hints.yml.dist index e6bcd2c6dbc..afeb5469e51 100644 --- a/features/ua-client-hints.yml.dist +++ b/features/ua-client-hints.yml.dist @@ -13,6 +13,13 @@ compat_features: # chrome: "89" # chrome_android: "89" # edge: "89" + - http.headers.Accept-CH.Sec-CH-UA + - http.headers.Accept-CH.Sec-CH-UA-Arch + - http.headers.Accept-CH.Sec-CH-UA-Full-Version + - http.headers.Accept-CH.Sec-CH-UA-Mobile + - http.headers.Accept-CH.Sec-CH-UA-Model + - http.headers.Accept-CH.Sec-CH-UA-Platform + - http.headers.Accept-CH.Sec-CH-UA-Platform-Version - http.headers.Sec-CH-UA - http.headers.Sec-CH-UA-Arch - http.headers.Sec-CH-UA-Mobile From e005f54fbd2aa2b83c15390ed5c3ebd234092c71 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Tue, 12 Nov 2024 14:39:02 +0100 Subject: [PATCH 4/4] Update features/ua-client-hints.yml Co-authored-by: Daniel D. Beck --- features/ua-client-hints.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/ua-client-hints.yml b/features/ua-client-hints.yml index 7b1aa6162ec..3ed66f7f880 100644 --- a/features/ua-client-hints.yml +++ b/features/ua-client-hints.yml @@ -1,5 +1,5 @@ name: User agent client hints -description: The `Sec-CH-UA` HTTP request header and the `navigator.userAgentData` API expose browser and platform information used to vary responses and application logic. User agent client hints are similar to user agent strings but more privacy-preserving and more robust. +description: The `Sec-CH-UA` HTTP request header and the `navigator.userAgentData` API expose browser and platform information used to vary responses and application logic. User agent client hints are similar to user agent strings but more privacy-preserving and safer to parse. spec: https://wicg.github.io/ua-client-hints/ compat_features: - api.Navigator.userAgentData