Repository navigation
[release/11.0] Fix AutoPause JS initializer fingerprinting - #69973
Conversation
) Backport merged commit 6e62760. Resolve the StaticWebAssets test-project conflict using release/11.0 reference and package-output conventions, without importing main-only packaging infrastructure. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 10877a46-ba03-475b-b1f1-13889c3a338a
There was a problem hiding this comment.
🟡 Changes recommended
The package regression needs endpoint metadata assertions to protect the cacheability behavior central to this fix.
1 open issue
What changed in this PR
Backports the AutoPause initializer fingerprinting fix to release/11.0, using SDK static web asset discovery to support cacheable initializer URLs.
Changes:
- Replaces manual asset registration with linked content, guarded for no-build packing.
- Adds package-layout and browser-request regression tests.
- Preserves the release branch’s test-reference and package-location conventions.
| File | Description |
|---|---|
src/Components/WebView/test/StaticWebAssets/PackageLayoutTests.cs |
Adds fingerprinted-file and raw-content package checks. |
src/Components/WebView/test/StaticWebAssets/Microsoft.AspNetCore.Components.WebView.StaticWebAssets.Tests.csproj |
Adds the AutoPause reference and package-list comment. |
src/Components/test/E2ETest/ServerRenderingTests/ResourceCollectionTest.cs |
Checks that the browser requests a fingerprinted initializer. |
src/Components/Server.AutoPause/src/Microsoft.AspNetCore.Components.Server.AutoPause.csproj |
Delegates generated asset discovery to the SDK with a no-build guard. |
Review effort: Balanced
|
Hi @ilonatommy. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge. To learn more about how to prepare a servicing PR click here. |
|
/ba-g temp data failures are not conntected to auto-pause nor fingerprinting |
|
Hi @ilonatommy. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed. |
|
/review |
|
Reviewed the frozen head with the four-arm G/M/S/O panel. All four arms completed both routed guides (27 topics total), and no verified net-new finding survived adjudication. Arm G and Arm S retain their original |

Backport of #69927 to release/11.0
/cc @ilonatommy
Fix AutoPause JS initializer fingerprinting
Use SDK discovery to fingerprint the AutoPause JavaScript initializer.
Description
Manually backport the merged source commit
6e62760191a731f63d79b49fad7eda0aaf855cf3from #69927 ontorelease/11.0at3b7d9e5dfea53388d9a0a6c423a26a2b1b861e04.Replace AutoPause's manual asset/endpoint registration with linked
Contentcollected before SDK static web asset discovery. Match the SDK'sNoBuildcondition to avoid shipping the generated bundles as raw NuGet content during no-build packing.Resolve the automatic backport's conflict in
Microsoft.AspNetCore.Components.WebView.StaticWebAssets.Tests.csprojby retaining the release branch'sReferenceconvention and existing shipping/nonshipping package locations, adding the AutoPause reference and package-list comment. Do not import main's explicitProjectReferencelist, isolated package feed, or_PrepareStaticWebAssetsPackagesinfrastructure. The production change and both package regressions and browser regression are carried over from the merged commit.Fixes #69912
Customer Impact
Without this fix, the AutoPause initializer is imported through its plain
no-cacheURL and must be revalidated before Blazor starts on each page load, including through a CDN. SDK discovery supplies the fingerprinted asset and import-map mapping so consumers can request the cacheable URL.Regression?
No known regression from a previously working release. The issue reports the behavior in .NET 11 RC1 and RC2; the original introduction was not bisected.
Risk
Limited to AutoPause static web asset discovery and regression coverage, using the SDK's existing discovery path. No public API or circuit lifecycle behavior changes. The no-build packaging guard is covered by running the package tests against a package produced with
--no-build.Verification
Packaging changes reviewed?
Inspected the locally built AutoPause package: the fingerprinted physical initializer and both endpoint forms are present, with no unintended
content/orcontentFiles/entries. Both package regression tests execute rather than skip, including after explicit no-build packing.