Bug 245310

Summary: Unexpected interruption of autoplay
Product: WebKit Reporter: Nick <hiatal-tab-0t>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   

Description Nick 2022-09-17 06:13:43 PDT
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.
Comment 1 Alexey Proskuryakov 2022-09-20 18:42:35 PDT
Could you please provide steps to reproduce that we can follow?
Comment 2 Nick 2022-09-20 21:33:19 PDT
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.
Comment 3 Radar WebKit Bug Importer 2022-09-24 06:14:17 PDT
<rdar://problem/100360129>
Comment 4 Alexey Proskuryakov 2022-09-26 12:54:26 PDT
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.