Skip to content

Enable JSPI in Firefox in emrun.#26714

Open
juj wants to merge 1 commit intoemscripten-core:mainfrom
juj:emrun_jspi
Open

Enable JSPI in Firefox in emrun.#26714
juj wants to merge 1 commit intoemscripten-core:mainfrom
juj:emrun_jspi

Conversation

@juj
Copy link
Copy Markdown
Collaborator

@juj juj commented Apr 17, 2026

JSPI is not yet enabled by default in Firefox, so enable it to be able to use emrun to test JSPI compiled Emscripten pages.

Comment thread emrun.py
// Do not ask user consent to enable audio playback (0: Allow autoplay for all media)
user_pref("media.autoplay.default", 0);
// Enable JSPI support
user_pref("javascript.options.wasm_js_promise_integration", true);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't see this in the browser testing config? Are we not testing JSPI firefox today? Should we be? @brendandahl

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i.e. should we add this also to test/firefox_user.js?

Should we make a plan to merge these to two configs?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Last I check it wasn't fully ready, but that's was several months ago. Maybe it's fine now?

sbc100 added a commit to sbc100/emscripten that referenced this pull request Apr 17, 2026
sbc100 added a commit that referenced this pull request Apr 18, 2026
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