<?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>222534</bug_id>
          
          <creation_ts>2021-02-28 20:53:55 -0800</creation_ts>
          <short_desc>[GPUP] MediaSession action handlers are run twice.</short_desc>
          <delta_ts>2021-03-04 16:43:08 -0800</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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>222759</dup_id>
          
          <bug_file_loc>https://googlechrome.github.io/samples/media-session/video.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>221830</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jean-Yves Avenard [:jya]">jean-yves.avenard</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1734327</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2021-02-28 20:53:55 -0800</bug_when>
    <thetext>STR:

- Open https://googlechrome.github.io/samples/media-session/video.html
- In the Now Playing menu, click on Pause, then play
- In the page, we can read 
&gt; User clicked &quot;Pause&quot; icon.
&gt; User clicked &quot;Pause&quot; icon.
&gt; User clicked &quot;Play&quot; icon.
&gt; User clicked &quot;Play&quot; icon.

Each action is printed twice, indicating that the MediaSession&apos;s actionHandler ran twice for each action.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1734329</commentid>
    <comment_count>1</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2021-02-28 21:04:55 -0800</bug_when>
    <thetext>Additional unexpected behaviour. When click on Pause via a BT headset, the current content is briefly paused to be resumed right away and we can see in the console:
&gt; User clicked &quot;Pause&quot; icon.
&gt; User clicked &quot;Play&quot; icon.

It works as expected in STP, Chrome or Firefox. Wrong behaviour showing in ToT&apos;s MiniBrowser</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1734331</commentid>
    <comment_count>2</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2021-02-28 21:20:48 -0800</bug_when>
    <thetext>This only occurs if the GPUP is enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1734332</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-02-28 21:21:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/74853506&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1736105</commentid>
    <comment_count>4</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2021-03-04 16:43:08 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 222759 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>