Skip to content

Web Client Hint support#7345

Open
ar2rsawseen wants to merge 5 commits intomasterfrom
ar2rsawseen/master2
Open

Web Client Hint support#7345
ar2rsawseen wants to merge 5 commits intomasterfrom
ar2rsawseen/master2

Conversation

@ar2rsawseen
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings March 4, 2026 09:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for Web User-Agent Client Hints for more reliable browser/OS/device detection in the web plugin, and validates the behavior with new integration tests.

Changes:

  • Implement client-hints parsing + normalization and merge it with UA parsing (client hints take priority).
  • Add integration tests covering UA parsing, client-hints priority, and normalization for browser/OS/device type.
  • Send Accept-CH / Critical-CH headers in API responses to request client hints from browsers.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
plugins/web/api/api.js Adds client-hints parsing/normalization and uses it to populate session/crash metrics
plugins/web/tests.js Adds integration tests for UA parsing + client-hints parsing/normalization
api/utils/common.js Adds default response headers to request client hints (Accept-CH, Critical-CH)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants