Repository navigation
Conversation
Retain the first failed-persistence response before the browser can submit its continuation. Preserve the existing request, cookie, signaling, and navigation assertions. Co-authored-by: Copilot App <[email protected]>
This was referenced Nov 6, 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.
Capture passkey upgrade HTML before automatic navigation
Retain passkey upgrade HTML before its automatic continuation can navigate.
Description
BlazorWebTemplate_ConditionalPasskeyRegistrationreads the first upgrade response after the page has submitted its continuation form and navigated away. Chromium can discard that response body, producing theNetwork.getResponseBodyerror documented in dotnet/aspnetcore#69494.For the failure cases that inspect redisplayed HTML, fetch and retain the first POST response before fulfilling the original browser request. Do not follow redirects during capture; leave GETs and subsequent POSTs on the normal browser path. Preserve the existing status, request, cookie, credential, signaling, and final-navigation assertions. All eight existing theory rows remain; no production code, retry, delay, timeout, or quarantine changes.
Simply moving the body read after the login click would still race the page's automatic navigation. Capturing before delivery provides an explicit ordering guarantee.
Validation
node <session-files>\passkey-response-repro.cjs— passed using installed Edge/Chromium 155 and cached Playwright 1.61.0, a loopback server, and the actual templatePasskeySubmit.razor.js. Baseline: 12/12 runs reproduced the body-read error. Capture: 12/12 passed, covering successful, rejected, pending, and unsupported signaling. Checked initial GET/query handling, continuation POST, cookie deletion, credential-field removal, original response status, redirect, and final page.& <session-files>\validate-passkey-capture.ps1— passed; the exact C# capture block compiles with nullable checks and warnings as errors against cached Playwright 1.61.0 and existing .NET 10 references.git -c core.longpaths=true diff --check— passed.. .\activate.ps1; dotnet --version— blocked: repository SDK12.0.100-alpha.1.26531.102is not installed. No tools were installed.BlazorWebTemplate_ConditionalPasskeyRegistrationin the generated ASP.NET application. The repository SDK and matching built product/template artifacts are unavailable. The browser reproduction does not validate persistence or the eight complete C# theory rows, and the API probe does not replace a project build against pinned Playwright 1.62.0. This draft does not claim verified CI remediation.Tradeoff: a small test-only interception is justified by repeated documented failures and a reproduced browser-lifetime mechanism. It retains all failure detection instead of adding retries or weakening assertions. The added response-path complexity is bounded to one response in affected rows; complete generated-application validation remains required before treating the flake as fixed.
This is a fork-only draft following the fork refresh. No upstream publication or CI retry was requested. Implementation and review were assisted by GitHub Copilot.
Fixes #1