Repository navigation
Prevent Edge compatibility relaunch from breaking browser debugging - #20152
Conversation
Co-authored-by: ellahathaway <[email protected]>
Ella Hathaway (ellahathaway)
left a comment
There was a problem hiding this comment.
I reviewed the Edge environment override, the generic and managed Blazor launch paths, session cleanup, and the E2E runner and coverage.
I didn't find any correctness or architectural issues. I also validated the fix manually through Debug in Browser.
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20152Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20152" |
Tests selector0 / 99 PR test projects · 2 PR jobs, from 5 changed files. Selected PR test projects (0 / 99)none — no PR-gated .NET test projects run for this change. Selected PR jobs (2)
How these were chosen — grouped by what changedJob reasons
Selection computed for commit |
|
The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests. Suspected flaky test(s):
Suggested actions:
You can re-run the failed jobs from the workflow run page. |
Description
When VS Code inherits
__COMPAT_LAYER=DetectorsAppHealth, Edge can replace its initial process, causing js-debug to cancel target discovery and leave Blazor Debug in Browser atabout:blank.__COMPAT_LAYER: nullin Windows Edge launch configurations, including managed Blazor attach. Remove case-insensitive aliases while preserving other variables, Chrome behavior, and the parent process environment.Related evidence: github/app#1227 reports the same inherited
__COMPAT_LAYER=DetectorsAppHealthcausing Edge's initial process to exit and breaking browser automation outside Aspire. That issue was reported fixed by no longer propagating the variable to child processes.Before
Error and no browser launch:

After
Browser launched without error:

Checklist
<remarks />and<code />elements on your triple slash comments?