Bug 189600 - Blocked autoplaying audio plays unexpectedly on visibilityState change
Summary: Blocked autoplaying audio plays unexpectedly on visibilityState change
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified macOS 10.13
: P2 Normal
Assignee: Jer Noble
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-09-13 12:01 PDT by Jer Noble
Modified: 2018-09-13 12:27 PDT (History)
1 user (show)

See Also:


Attachments
two-audio-element-autoplay.html (348 bytes, text/html)
2018-09-13 12:01 PDT, Jer Noble
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>