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.
<rdar://problem/44186498>
Created attachment 349199 [details] Patch
Created attachment 349206 [details] Patch
Created attachment 349209 [details] Patch
Created attachment 349216 [details] Patch
Comment on attachment 349216 [details] Patch Very nice, thank you!
Committed r235850: <https://trac.webkit.org/changeset/235850>