Skip to content

Add test for native AudioWorklet.port and @requires_chrome_version - #27679

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:test-audioworklet-port
Open

Add test for native AudioWorklet.port and @requires_chrome_version#27679
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:test-audioworklet-port

Conversation

@sbc100

@sbc100 sbc100 commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Add --enable-blink-features=AudioWorkletSharedPort to Chrome default flags to enable AudioWorklet.port (the spec-defined shared MessagePort between AudioWorklet and AudioWorkletGlobalScope).

Add get_chrome_version() in test/browser_common.py and requires_chrome_version in test/test_browser.py.

Add test/webaudio/test_audio_worklet_port.c and test test_audio_worklet_port to verify that when native AudioWorklet.port is present, the worklet uses it directly without falling back to the em-bootstrap AudioWorkletProcessor.

See: #27615

Add `--enable-blink-features=AudioWorkletSharedPort` to Chrome default
flags to enable `AudioWorklet.port` (the spec-defined shared
`MessagePort` between `AudioWorklet` and `AudioWorkletGlobalScope`).

Add `get_chrome_version()` in `test/browser_common.py` and
`requires_chrome_version` in `test/test_browser.py`.

Add `test/webaudio/test_audio_worklet_port.c` and test
`test_audio_worklet_port` to verify that when native `AudioWorklet.port`
is present, the worklet uses it directly without falling back to the
`em-bootstrap` `AudioWorkletProcessor`.

See: emscripten-core#27615
@sbc100
sbc100 force-pushed the test-audioworklet-port branch from 54c5af5 to 12a86f4 Compare September 5, 2026 16:39
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.

1 participant