<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>189600</bug_id>
          
          <creation_ts>2018-09-13 12:01:38 -0700</creation_ts>
          <short_desc>Blocked autoplaying audio plays unexpectedly on visibilityState change</short_desc>
          <delta_ts>2018-09-13 12:27:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 10.13</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jer Noble">jer.noble</reporter>
          <assigned_to name="Jer Noble">jer.noble</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1459464</commentid>
    <comment_count>0</comment_count>
      <attachid>349687</attachid>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2018-09-13 12:01:38 -0700</bug_when>
    <thetext>Created attachment 349687
two-audio-element-autoplay.html

On Mac Safari, when two media elements in a page both have &quot;autoplay&quot; 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 &quot;eligible for autoplay&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1459479</commentid>
    <comment_count>1</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2018-09-13 12:27:13 -0700</bug_when>
    <thetext>This affects &lt;http://relay.fm/live&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1459480</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-09-13 12:27:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/44427691&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>349687</attachid>
            <date>2018-09-13 12:01:38 -0700</date>
            <delta_ts>2018-09-13 12:01:38 -0700</delta_ts>
            <desc>two-audio-element-autoplay.html</desc>
            <filename>two-audio-element-autoplay.html</filename>
            <type>text/html</type>
            <size>348</size>
            <attacher name="Jer Noble">jer.noble</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPC9oZWFkPgo8Ym9keT4KCTxhdWRpbyBhdXRv
cGxheSBzcmM9Imh0dHBzOi8vZGV2c3RyZWFtaW5nLWNkbi5hcHBsZS5jb20vdmlkZW9zL3N0cmVh
bWluZy9leGFtcGxlcy9iaXBib3BfMTZ4OS9iaXBib3BfMTZ4OV92YXJpYW50Lm0zdTgiIGNvbnRy
b2xzPjwvYXVkaW8+PGJyLz4KCTxhdWRpbyBhdXRvcGxheSBzcmM9Imh0dHBzOi8vZGV2c3RyZWFt
aW5nLWNkbi5hcHBsZS5jb20vdmlkZW9zL3N0cmVhbWluZy9leGFtcGxlcy9iaXBib3BfMTZ4OS9i
aXBib3BfMTZ4OV92YXJpYW50Lm0zdTgiIGNvbnRyb2xzPjwvYXVkaW8+PGJyLz4KPC9ib2R5Pgo8
L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>