Skip to content

[browser][mono] ST build is always sidecar on a worker - #121879

Merged
pavelsavara merged 1 commit into
dotnet:mainfrom
pavelsavara:browser_ST_sidecar
Nov 26, 2025
Merged

pavelsavara merged 1 commit into
dotnet:mainfrom
pavelsavara:browser_ST_sidecar

Conversation

@pavelsavara

@pavelsavara pavelsavara commented Nov 21, 2025 •

Copy link
Copy Markdown
Member

Contributes to #114918 (comment)

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 fixes a bug where single-threaded (ST) builds were not always properly marking workers as sidecars. The change ensures that in ST builds, any web worker becomes a sidecar, while in multi-threaded (MT) builds, only the first script loaded in a worker becomes the sidecar.

  • Modified the sidecar detection logic to account for ST vs MT builds
  • Added import for WasmEnableThreads constant to enable build-time detection

@pavelsavara
pavelsavara merged commit 80f1fae into dotnet:main Nov 26, 2025
@pavelsavara
pavelsavara deleted the browser_ST_sidecar branch November 26, 2025 13:01
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-VM-threading-mono os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants