If allow autoplay on a certain website in safari preferences media content started with injected script will be interrupted throw some time (5-30 seconds). In Safari 16 this bug exist.
Could you please provide steps to reproduce that we can follow?
1. Open any website with music. 2. Go to Safari Preferences -> Websites -> Auto-Play and Allow All Auto-Play for site from step 1. 3. Stop music playback. 4. Open new tab. 5. Wait over 30 minutes. 6. Don’t select tab with music. 7. Start playback using the script. Playback will be interrupted in some time.
<rdar://problem/100360129>
We are unable to reproduce given these steps. It's not even entirely clear what scenario this is - an extension? or an application that embeds a web view? How is the script injected? Please provide detailed steps to reproduce that can be followed precisely.