Add bitness and wow64 properties to UserAgentMetadata#3074
Merged
Conversation
Co-authored-by: kblok <2198466+kblok@users.noreply.github.com>
Co-authored-by: kblok <2198466+kblok@users.noreply.github.com>
Copilot
AI
changed the title
Add bitness property to UserAgentMetadata class
Add bitness and wow64 properties to UserAgentMetadata
Jan 5, 2026
kblok
reviewed
Jan 5, 2026
| Assert.That(await requestTask, Is.EqualTo("MockBrowser")); | ||
| } | ||
|
|
||
| [Test, PuppeteerTest("page.spec", "Page Page.setUserAgent", "should work with bitness and wow64")] |
Co-authored-by: kblok <2198466+kblok@users.noreply.github.com>
This was referenced Feb 2, 2026
This was referenced Feb 9, 2026
This was referenced Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bitnessproperty (optional string) to UserAgentMetadata classWow64property (optional boolean) to UserAgentMetadata classSummary
Successfully added the missing
bitnessandwow64optional properties to theUserAgentMetadataclass as requested in the issue.Changes Made
Bitnessproperty (string) - Represents the "bitness" of the user agent (e.g., "32" or "64")Wow64property (bool?) - True if on Windows and WOW64 (Windows 32-bit on Windows 64-bit)ShouldWorkWithBitnessAndWow64test usingpuppeteer-sharpspec to verify the new properties work correctlyImplementation Details
Chrome DevTools Protocol Compliance
These properties match the Chrome DevTools Protocol specification:
Testing
navigator.userAgentData.getHighEntropyValues()puppeteer-sharpspec designation for PuppeteerSharp-specific testsResolves the issue requesting bitness and wow64 properties for UserAgentMetadata.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.