When playing an audio element, the media Touch Bar displays an active PIP button even though only videos are PIP-able. Pressing it does not do anything. It seems like canTogglePictureInPicture is set to YES unconditionally on the WebPlaybackControlsManager. It should be set based on the media type.
Created attachment 349199 [details]
Created attachment 349206 [details]
Created attachment 349209 [details]
Created attachment 349216 [details]
Comment on attachment 349216 [details]
Very nice, thank you!
Committed r235850: <https://trac.webkit.org/changeset/235850>