Skip to content

Update Firefox support for WebAssembly JS-PI#29783

Merged
Elchi3 merged 3 commits into
mdn:mainfrom
KirtiRamchandani:data/wasm-jspi-firefox152
Jun 19, 2026
Merged

Update Firefox support for WebAssembly JS-PI#29783
Elchi3 merged 3 commits into
mdn:mainfrom
KirtiRamchandani:data/wasm-jspi-firefox152

Conversation

@KirtiRamchandani

Copy link
Copy Markdown
Contributor

Problem

mdn/content#44167 tracks Firefox 152 Nightly support for WebAssembly JavaScript Promise Integration (JS-PI), but BCD still marked Firefox as unsupported.

Root cause

webassembly/jspi.json had no Firefox support entry for the new Nightly implementation.

Solution

Mark Firefox 152 support behind the javascript.options.wasm_js_promise_integration preference. Firefox for Android continues to mirror desktop Firefox for this feature.

Tests run

  • node lint/lint.js webassembly/jspi.json
  • node_modules/.bin/prettier.cmd --check webassembly/jspi.json
  • node -e "JSON.parse(require('fs').readFileSync('webassembly/jspi.json','utf8')); console.log('ok')"
  • git diff --check

@github-actions github-actions Bot added data:wasm Compat data for Web Assembly features. https://developer.mozilla.org/en-US/docs/WebAssembly size:s [PR only] 7-24 LoC changed labels Jun 1, 2026
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@KirtiRamchandani

Copy link
Copy Markdown
Contributor Author

Thanks — preview URLs look good; no rendering issues spotted on my side.

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

Thanks for your PR! This appears to be shipping in Firefox 153, according to https://bugzilla.mozilla.org/show_bug.cgi?id=2044809

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

@KirtiRamchandani thanks for attempting this.

To be honest, I'd prefer you to add data for the two JSAPI features that comprise this feature, rather than a single feature data point.

The two features are:

They'll have the same support versions as the file you just updated, but I'd like you to delete that file and make the two updates described above instead.

See also @Elchi3's comment about the Fx support version.

See also here for the spec: https://webassembly.github.io/js-promise-integration/js-api/#jspi

@KirtiRamchandani

Copy link
Copy Markdown
Contributor Author

Thanks @chrisdavidmills working on this now

Add webassembly.api.promising_static and webassembly.api.Suspending
instead of updating webassembly.jspi.
@KirtiRamchandani KirtiRamchandani force-pushed the data/wasm-jspi-firefox152 branch from 978cc8d to 35818dd Compare June 16, 2026 14:49
@github-actions github-actions Bot added size:xs [PR only] 0-6 LoC changed and removed size:s [PR only] 7-24 LoC changed labels Jun 16, 2026

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

@KirtiRamchandani, this is what I was hoping for, thanks!

Although, afaics, JS-PI is set to be enabled by default in Fx 153, not behind a flag. Did you have evidence to the contrary?

@KirtiRamchandani

Copy link
Copy Markdown
Contributor Author

Sorry I just missed the https://hg-edge.mozilla.org/mozilla-central/rev/da1c4762d8af
Updating it now. Thanks for rteview.

JS-PI is enabled by default in Firefox 153 per bug 2044809.
@github-actions github-actions Bot added size:l [PR only] 101-1000 LoC changed and removed size:xs [PR only] 0-6 LoC changed labels Jun 17, 2026
Comment thread webassembly/api.json Outdated
Comment thread webassembly/api/Suspending.json Outdated
Comment thread webassembly/api/Suspending.json Outdated
@github-actions

Copy link
Copy Markdown
Contributor

The lint check found auto-fixable issues. Apply suggested changes (attributed to bcd-linter), or to fix all at once, run npm run lint:fix locally.

See also: Automated lint suggestions on pull requests

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

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

Thanks for your PR!

https://github.com/mdn/browser-compat-data/blob/main/webassembly/jspi.json also needs to be updated to say it is supported in Firefox 153

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

Actually, I got that webassembly.jspi key covered in #29883.

The additional keys that Chris rightly pointed out aren't in webref (and therefore not in the collector) as they are only specified in a forked version of the Wasm spec, so yes let's get them in manually here. Thank you!

@Elchi3 Elchi3 dismissed chrisdavidmills’s stale review June 19, 2026 11:08

Issues addressed

@Elchi3 Elchi3 merged commit e3082f6 into mdn:main Jun 19, 2026
10 checks passed
@mdn-bot mdn-bot mentioned this pull request Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:wasm Compat data for Web Assembly features. https://developer.mozilla.org/en-US/docs/WebAssembly size:l [PR only] 101-1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants