Skip to content

use OperatingSystem.IsBrowser from polyfill#7462

Merged
Youssef1313 merged 1 commit intomicrosoft:mainfrom
SimonCropp:use-OperatingSystem.IsBrowser-from-polyfill
Feb 24, 2026
Merged

use OperatingSystem.IsBrowser from polyfill#7462
Youssef1313 merged 1 commit intomicrosoft:mainfrom
SimonCropp:use-OperatingSystem.IsBrowser-from-polyfill

Conversation

@SimonCropp
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 24, 2026 09:50
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

This PR simplifies the TRX report extension’s platform detection by relying on the OperatingSystem.IsBrowser() API (available via the repo’s Polyfill usage) instead of conditional compilation + RuntimeInformation checks.

Changes:

  • Removed #if NETCOREAPP / #else branches around browser detection.
  • Standardized on OperatingSystem.IsBrowser() to decide whether to register non-browser (named-pipe) components.

@Youssef1313 Youssef1313 enabled auto-merge (squash) February 24, 2026 16:10
@Youssef1313 Youssef1313 merged commit 664a4e7 into microsoft:main Feb 24, 2026
14 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