[webkit-changes] [WebKit/WebKit] 6aff2c: [media-controls] LayoutTraits.supportsAirPlay() an...

Antoine Quint noreply at github.com
Thu Feb 2 11:41:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6aff2cbcaecd59b5eaec0ecdd3076ee69bb87d1e
      https://github.com/WebKit/WebKit/commit/6aff2cbcaecd59b5eaec0ecdd3076ee69bb87d1e
  Author: Antoine Quint <graouts at webkit.org>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  Changed paths:
    M Source/WebCore/Modules/modern-media-controls/media/airplay-support.js
    M Source/WebCore/Modules/modern-media-controls/media/media-controller.js
    M Source/WebCore/Modules/modern-media-controls/media/pip-support.js

  Log Message:
  -----------
  [media-controls] LayoutTraits.supportsAirPlay() and LayoutTraits.supportPiP() should reliably disable those features
https://bugs.webkit.org/show_bug.cgi?id=251623

Reviewed by Dean Jackson and Tim Horton.

The best way to disable a feature is to disable the relevant control.

* Source/WebCore/Modules/modern-media-controls/media/airplay-support.js:
(AirplaySupport.prototype._shouldBeEnabled):
(AirplaySupport):
* Source/WebCore/Modules/modern-media-controls/media/media-controller.js:
(MediaController.prototype._supportingObjectClasses):
* Source/WebCore/Modules/modern-media-controls/media/pip-support.js:
(PiPSupport.prototype.syncControl):
(PiPSupport):

Canonical link: https://commits.webkit.org/259767@main




More information about the webkit-changes mailing list