Add test for native AudioWorklet.port and @requires_chrome_version - #27679
Open
sbc100 wants to merge 1 commit into
Open
Add test for native AudioWorklet.port and @requires_chrome_version#27679sbc100 wants to merge 1 commit into
sbc100 wants to merge 1 commit into
Conversation
sbc100
force-pushed
the
test-audioworklet-port
branch
from
September 5, 2026 16:37
549b92d to
54c5af5
Compare
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
force-pushed
the
test-audioworklet-port
branch
from
September 5, 2026 16:39
54c5af5 to
12a86f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
--enable-blink-features=AudioWorkletSharedPortto Chrome default flags to enableAudioWorklet.port(the spec-defined sharedMessagePortbetweenAudioWorkletandAudioWorkletGlobalScope).Add
get_chrome_version()intest/browser_common.pyandrequires_chrome_versionintest/test_browser.py.Add
test/webaudio/test_audio_worklet_port.cand testtest_audio_worklet_portto verify that when nativeAudioWorklet.portis present, the worklet uses it directly without falling back to theem-bootstrapAudioWorkletProcessor.See: #27615