Add a new MediaCapabilitiesExtensionsEnabled setting
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Mar 2019 22:00:51 +0000 (22:00 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Mar 2019 22:00:51 +0000 (22:00 +0000)
commitd0179e2a2aa9bd44a589345ca0bc6d57963b9ab7
treec6d1ce9f7c00cf4caa79c81f85e40e22aa0ac98f
parent6ed66af5a4f99ecb80b8cca9cb628e7ac8f66d49
Add a new MediaCapabilitiesExtensionsEnabled setting
https://bugs.webkit.org/show_bug.cgi?id=195843

Reviewed by Geoffrey Garen.

Source/WebCore:

Add a new setting, MediaCapabilitiesExtensionsEnabled, which controls whether extensions
to the Media Capabilities API are available.

Drive-by fix: make sure that the configuration is passed through to MediaCapabilitiesInfo
when no factory can support the configuration.

* Modules/mediacapabilities/MediaCapabilitiesDecodingInfo.idl:
* Modules/mediacapabilities/MediaCapabilitiesEncodingInfo.idl:
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateDictionaryImplementationContent):
* bindings/scripts/IDLAttributes.json:
* page/Settings.yaml:
* platform/mediacapabilities/MediaEngineConfigurationFactory.cpp:
(WebCore::MediaEngineConfigurationFactory::createDecodingConfiguration):

Source/WebKit:

* Shared/WebPreferences.yaml:

LayoutTests:

* media/mediacapabilities/mock-decodingInfo-supportedConfiguration-expected.txt:
* media/mediacapabilities/mock-decodingInfo-supportedConfiguration.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/media/mediacapabilities/mock-decodingInfo-supportedConfiguration-expected.txt
LayoutTests/media/mediacapabilities/mock-decodingInfo-supportedConfiguration.html
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediacapabilities/MediaCapabilitiesDecodingInfo.idl
Source/WebCore/Modules/mediacapabilities/MediaCapabilitiesEncodingInfo.idl
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
Source/WebCore/bindings/scripts/IDLAttributes.json
Source/WebCore/page/Settings.yaml
Source/WebCore/platform/mediacapabilities/MediaEngineConfigurationFactory.cpp
Source/WebKit/ChangeLog
Source/WebKit/Shared/WebPreferences.yaml