Skip to content

[release/11.0] Fix AutoPause JS initializer fingerprinting - #69973

Merged
wtgodbe merged 1 commit into
dotnet:release/11.0from
ilonatommy:ilonatommy-autopause-net11-backport
Nov 3, 2026
Merged

wtgodbe merged 1 commit into
dotnet:release/11.0from
ilonatommy:ilonatommy-autopause-net11-backport

Conversation

@ilonatommy

@ilonatommy ilonatommy commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

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 6e62760191a731f63d79b49fad7eda0aaf855cf3 from #69927 onto release/11.0 at 3b7d9e5dfea53388d9a0a6c423a26a2b1b861e04.

Replace AutoPause's manual asset/endpoint registration with linked Content collected before SDK static web asset discovery. Match the SDK's NoBuild condition 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.csproj by retaining the release branch's Reference convention and existing shipping/nonshipping package locations, adding the AutoPause reference and package-list comment. Do not import main's explicit ProjectReference list, isolated package feed, or _PrepareStaticWebAssetsPackages infrastructure. 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-cache URL 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?

  • Yes
  • No

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

  • High
  • Medium
  • Low

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

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

Inspected the locally built AutoPause package: the fingerprinted physical initializer and both endpoint forms are present, with no unintended content/ or contentFiles/ entries. Both package regression tests execute rather than skip, including after explicit no-build packing.

)

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
@ilonatommy
ilonatommy requested a review from a team as a code owner October 22, 2026 13:32
Copilot AI balanced review requested due to automatic review settings October 22, 2026 13:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

@ilonatommy ilonatommy self-assigned this Oct 23, 2026
@ilonatommy ilonatommy added area-blazor Includes: Blazor, Razor Components Servicing-consider Shiproom approval is required for the issue labels Oct 23, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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.

@ilonatommy

Copy link
Copy Markdown
Member Author

/ba-g temp data failures are not conntected to auto-pause nor fingerprinting

@ilonatommy ilonatommy added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Oct 29, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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.

@PureWeen

Copy link
Copy Markdown
Member

/review

@PureWeen

PureWeen commented Nov 2, 2026

Copy link
Copy Markdown
Member

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 STATUS: INCOMPLETE headers because their initial post-completion read_agent calls omitted explicit wait: true. The Step 6 receipt confirmed every affected worker had already emitted subagent.completed, returned a complete PATH: per-guide-worker report, and Arm S's later wait: true reads returned identical report content. Under the parent ruling and #70255 precedent, that receipt-form omission caused no coverage loss and does not hold the clean gate.

@wtgodbe
wtgodbe merged commit 6f5be22 into dotnet:release/11.0 Nov 3, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-reviewed-approved area-blazor Includes: Blazor, Razor Components Servicing-approved Shiproom has approved the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants