Skip to content

[browser][CoreCLR] Drop coreVfs resource support from loader#130784

Merged
pavelsavara merged 3 commits into
mainfrom
copilot/fix-coreclr-browser-issue-121486
Jul 16, 2026
Merged

[browser][CoreCLR] Drop coreVfs resource support from loader#130784
pavelsavara merged 3 commits into
mainfrom
copilot/fix-coreclr-browser-issue-121486

Conversation

Copilot AI commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #121486

The coreVfs resource bucket was added to load runtimeconfig into the VFS before runtime startup. Since runtimeconfig is now embedded in the boot config, coreVfs is obsolete. This removes it from the CoreCLR/Browser loader only, leaving the Mono flavor and the shared SDK build tasks untouched.

Changes (src/native/libs/Common/JavaScript)

  • loader/config.ts — drop coreVfs from mergeResources and normalizeResources
  • loader/run.ts — remove the coreVfs fetch promise and its await
  • loader/assets.ts — remove the coreVfs prefetch enqueue
  • types/public-api.ts — remove the coreVfs member from the Assets interface
  • loader/dotnet.d.ts — regenerated without coreVfs (matches the source edit)

Scope

Mono (src/mono/browser/runtime) and the shared Microsoft.NET.Sdk.WebAssembly.Pack.Tasks still emit/consume coreVfs, so any boot config carrying it is simply ignored by the CoreCLR loader.

Co-authored-by: pavelsavara <271576+pavelsavara@users.noreply.github.com>
Copilot AI self-assigned this Jul 15, 2026
Copilot AI review requested due to automatic review settings July 15, 2026 14:21
Copilot AI removed the request for review from Copilot July 15, 2026 14:21
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-Host os-browser Browser variant of arch-wasm labels Jul 15, 2026
@pavelsavara pavelsavara added this to the 11.0.0 milestone Jul 15, 2026
@pavelsavara
pavelsavara temporarily deployed to copilot-pat-pool July 15, 2026 14:25 — with GitHub Actions Inactive
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

@pavelsavara pavelsavara changed the title [browser] Drop coreVfs resource support in CoreCLR loader [browser][CoreCLR] Drop coreVfs resource support from loader Jul 15, 2026
@pavelsavara
pavelsavara temporarily deployed to copilot-pat-pool July 15, 2026 14:25 — with GitHub Actions Inactive
@pavelsavara
pavelsavara marked this pull request as ready for review July 15, 2026 16:34
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Pull request overview

This PR removes the coreVfs resource bucket from the CoreCLR/browser JavaScript loader pipeline, including the runtime startup download path, config resource normalization/merging, prefetch behavior, and the exported TypeScript types.

Changes:

  • Removed coreVfs handling from loader config merge/normalize logic.
  • Removed coreVfs download/await and prefetch enqueue paths in the CoreCLR loader.
  • Updated the public Assets type and regenerated dotnet.d.ts accordingly.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/native/libs/Common/JavaScript/types/public-api.ts Removes coreVfs from the exported Assets interface.
src/native/libs/Common/JavaScript/loader/config.ts Drops coreVfs from mergeResources and normalizeResources.
src/native/libs/Common/JavaScript/loader/run.ts Removes the coreVfs fetch/await from createRuntime.
src/native/libs/Common/JavaScript/loader/assets.ts Removes coreVfs from prefetch queueing.
src/native/libs/Common/JavaScript/loader/dotnet.d.ts Regenerated typings without coreVfs in Assets.

Comment thread src/native/libs/Common/JavaScript/types/public-api.ts

@maraf maraf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copilot AI review requested due to automatic review settings July 16, 2026 07:40
@pavelsavara
pavelsavara temporarily deployed to copilot-pat-pool July 16, 2026 07:40 — with GitHub Actions Inactive
@pavelsavara
pavelsavara temporarily deployed to copilot-pat-pool July 16, 2026 07:40 — with GitHub Actions Inactive

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.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Comment thread src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/BootJsonData.cs
Comment thread src/native/libs/Common/JavaScript/types/public-api.ts
@pavelsavara

Copy link
Copy Markdown
Member

/ba-g unrelated failures

@pavelsavara
pavelsavara merged commit 2411874 into main Jul 16, 2026
131 of 138 checks passed
@pavelsavara
pavelsavara deleted the copilot/fix-coreclr-browser-issue-121486 branch July 16, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture area-Host os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[browser] drop support for coreVfs resources

5 participants