The way the media controls code deals with LayoutTraits.supportsAirPlay() and LayoutTraits.supportPiP() to disable the relevant features is not ideal since it completely bypasses the MediaSupport classes for them or fails to hide their buttons. The best way to deal with this is to ensure the relevant controls are disabled if the feature is off, ensuring they will not appear anywhere in the UI.
Pull request: https://github.com/WebKit/WebKit/pull/9547
Committed 259767@main (6aff2cbcaecd): <https://commits.webkit.org/259767@main> Reviewed commits have been landed. Closing PR #9547 and removing active labels.
<rdar://problem/104970740>