Bug 274647

Summary: REGRESSION (Safari 17.5): WebAudio cannot play in a configuration with 3 contexts and a worklet
Product: WebKit Reporter: seth wang <seth.wang>
Component: Web AudioAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Critical CC: ahmad.saleem792, cdumez, jean-yves.avenard, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   

Description seth wang 2024-05-24 06:03:13 PDT
If the app creates three AudioContexts quickly and then creates an AudioWorklet. we cannot play audio. 
It can reproduce the issue on Sonoma 14.5, but not on 14.4. We think it is a bug from webkit


Here is the demo link: https://poetic-cheesecake-14f645.netlify.app/ (just click the `click me` button).
Comment 1 Ahmad Saleem 2024-05-24 06:44:19 PDT
*** Bug 274648 has been marked as a duplicate of this bug. ***
Comment 2 Ahmad Saleem 2024-05-24 07:03:20 PDT
@Jean - by any chance, is this similar to - https://github.com/WebKit/WebKit/pull/29048

If you have local build of your patch, can you try this?
Comment 3 Radar WebKit Bug Importer 2024-05-27 10:40:29 PDT
<rdar://problem/128805345>
Comment 4 Jer Noble 2024-05-28 09:11:22 PDT
This does seem likely to be a dup of bug #274507, but we'll see if the fix from that bug fixes this test case as well.
Comment 5 Jer Noble 2024-05-28 14:52:23 PDT
It does indeed look like this will be fixed by https://github.com/WebKit/WebKit/pull/29048. Marking this as a dup. Please follow bug #274507 for updates>

*** This bug has been marked as a duplicate of bug 274507 ***