Skip to content

Update default minimum browser versions - #28141

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:default_browser_versions
Nov 5, 2026
Merged

sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:default_browser_versions

Conversation

@sbc100

@sbc100 sbc100 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Bump the default target browser versions in src/settings.js:

  • MIN_CHROME_VERSION: 85 (Aug 2020) -> 93 (Aug 2021)
  • MIN_FIREFOX_VERSION: 79 (Jul 2020) -> 92 (Sep 2021)
  • MIN_SAFARI_VERSION: 150000 (Sep 2021) -> 150400 (Mar 2022)

This allows $hasOwn in libcore.js (introduced in #28129) to use the
Object.hasOwn fast path by default, and allows $waitAsyncPolyfilled
in libatomic.js (updated in #28172) to omit the Chrome < 91 user-agent
check by default.

Note: This does not effect the minimum browsers versions that we support
or the behaviour -sLEGACY_VM_SUPPORT.

See: #28125

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request increases the default minimum browser versions targeted by Emscripten: Chrome (85 to 93), Firefox (79 to 92), and Safari (15.0 to 15.4). These updates are applied to the default settings, documentation, changelog, and test code size expectations. I have no feedback to provide as there are no review comments to assess.

@sbc100
sbc100 requested review from dschuff and kripken November 2, 2026 21:56
@sbc100
sbc100 force-pushed the default_browser_versions branch 2 times, most recently from 63bd576 to 947aa42 Compare November 2, 2026 22:55
Comment thread ChangeLog.md Resolved

@kripken kripken 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.

lgtm otherwise

@sbc100
sbc100 force-pushed the default_browser_versions branch from 58ee5e7 to eade2da Compare November 4, 2026 23:29
sbc100 added a commit that referenced this pull request Nov 5, 2026
Only include the `Atomics.waitAsync` polyfill when targeting engines
that lack support (Chrome < 91, Safari < 16.4, or Firefox < 145; Node.js
has supported `Atomics.waitAsync` since v16.0.0).

Also guard the runtime Chrome < 91 user-agent regex check with `#if
MIN_CHROME_VERSION < 91` so it is omitted when targeting Chrome 91 or
newer (such as the new default `MIN_CHROME_VERSION=93` in #28141).
Bump the default target browser versions in `src/settings.js`:
- `MIN_CHROME_VERSION`: 85 (Aug 2020) -> 93 (Aug 2021)
- `MIN_FIREFOX_VERSION`: 79 (Jul 2020) -> 92 (Sep 2021)
- `MIN_SAFARI_VERSION`: 150000 (Sep 2021) -> 150400 (Mar 2022)

This allows `$hasOwn` in `libcore.js` (introduced in emscripten-core#28129) to use the
`Object.hasOwn` fast path by default, and allows `$waitAsyncPolyfilled`
in `libatomic.js` (updated in emscripten-core#28172) to omit the Chrome < 91 user-agent
check by default.

Note: This does not effect the minimum browsers versions that we support
or the behaviour -sLEGACY_VM_SUPPORT.

See: emscripten-core#28125
@sbc100
sbc100 force-pushed the default_browser_versions branch from eade2da to b992d41 Compare November 5, 2026 00:14
@sbc100
sbc100 merged commit 7c2d477 into emscripten-core:main Nov 5, 2026
22 of 24 checks passed
@sbc100
sbc100 deleted the default_browser_versions branch November 5, 2026 00:46
clementperon added a commit to clementperon/emscripten that referenced this pull request Nov 6, 2026
Resolve the codesize expectation conflicts: main only changed the JS
sizes (emscripten-core#28141) and this branch only changed the wasm sizes, so take the
JS sizes from main, the wasm sizes from this branch, and recompute the
totals.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
clementperon added a commit to clementperon/emscripten that referenced this pull request Nov 6, 2026
Resolve the codesize expectation conflicts: main only changed the JS
sizes (emscripten-core#28141) and this branch only changed the wasm sizes, so take the
JS sizes from main, the wasm sizes from this branch, and recompute the
totals.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants