Bug 222534 - [GPUP] MediaSession action handlers are run twice.
Summary: [GPUP] MediaSession action handlers are run twice.
Status: RESOLVED DUPLICATE of bug 222759
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://googlechrome.github.io/sample...
Keywords: InRadar
Depends on:
Blocks: 221830
  Show dependency treegraph
 
Reported: 2021-02-28 20:53 PST by Jean-Yves Avenard [:jya]
Modified: 2021-03-04 16:43 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2021-02-28 20:53:55 PST
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 
> User clicked "Pause" icon.
> User clicked "Pause" icon.
> User clicked "Play" icon.
> User clicked "Play" icon.

Each action is printed twice, indicating that the MediaSession's actionHandler ran twice for each action.
Comment 1 Jean-Yves Avenard [:jya] 2021-02-28 21:04:55 PST
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:
> User clicked "Pause" icon.
> User clicked "Play" icon.

It works as expected in STP, Chrome or Firefox. Wrong behaviour showing in ToT's MiniBrowser
Comment 2 Jean-Yves Avenard [:jya] 2021-02-28 21:20:48 PST
This only occurs if the GPUP is enabled.
Comment 3 Radar WebKit Bug Importer 2021-02-28 21:21:22 PST
<rdar://problem/74853506>
Comment 4 Jean-Yves Avenard [:jya] 2021-03-04 16:43:08 PST

*** This bug has been marked as a duplicate of bug 222759 ***