We don't currently have a test to ensure that when the MediaSessionCoordinatorPrivate in the UI process is disconnected or switch to the closed state that the MediaSessionCoordinator in the web process properly signals JS that the session got closed.
Let's add a test for it.
Created attachment 430447 [details]
Comment on attachment 430447 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=430447&action=review
> + * Modules/mediasession/MediaSessionCoordinatorPrivate.h: Add coordinatorStateChanged method,
> + will forward state to RemoteMediaSessionCoordinatorProxy::coordinatorStateChanged.
Nit: this comment isn't accurate.
Committed r278423 (238447@main): <https://commits.webkit.org/238447@main>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 430447 [details].