Bug 189600

Summary: Blocked autoplaying audio plays unexpectedly on visibilityState change
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: MediaAssignee: Jer Noble <jer.noble>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: macOS 10.13   
Attachments:
Description Flags
two-audio-element-autoplay.html none

Description Jer Noble 2018-09-13 12:01:38 PDT
Created attachment 349687 [details]
two-audio-element-autoplay.html

On Mac Safari, when two media elements in a page both have "autoplay" attributes, and one element has its play() method called during a user gesture, the play restrictions for every media element in the page is lifted. The next time the "eligible for autoplay" check is made, the previously blocked element begins playing unexpectedly.

This is fallout from our compatibility decision to unblock autoplay at a page level once one element is unblocked due to a user gesture.
Comment 1 Jer Noble 2018-09-13 12:27:13 PDT
This affects <http://relay.fm/live>.
Comment 2 Radar WebKit Bug Importer 2018-09-13 12:27:54 PDT
<rdar://problem/44427691>