Skip to content

Web Client Hint support#7345

Merged
ar2rsawseen merged 6 commits intomasterfrom
ar2rsawseen/master2
Mar 6, 2026
Merged

Web Client Hint support#7345
ar2rsawseen merged 6 commits intomasterfrom
ar2rsawseen/master2

Conversation

@ar2rsawseen
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 4, 2026 09:14
@ar2rsawseen ar2rsawseen force-pushed the ar2rsawseen/master2 branch from de3e3f1 to c00ce63 Compare March 4, 2026 09:15
Copy link
Copy Markdown
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)

Comment thread plugins/web/api/api.js Outdated
Comment thread plugins/web/api/api.js
Comment thread plugins/web/api/api.js Outdated
Comment thread plugins/web/tests.js
@ar2rsawseen ar2rsawseen force-pushed the ar2rsawseen/master2 branch from a2c251c to eba78b1 Compare March 6, 2026 12:21
@ar2rsawseen ar2rsawseen merged commit 0eec958 into master Mar 6, 2026
13 of 15 checks passed
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.

3 participants