Changeset 282137 in webkit
- Timestamp:
- Sep 8, 2021 4:01:18 AM (11 months ago)
- Location:
- trunk/Source
- Files:
-
- 11 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/Scripts/Preferences/WebPreferencesExperimental.yaml (modified) (1 diff)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/html/HTMLMediaElement.cpp (modified) (2 diffs)
-
WebCore/page/RuntimeEnabledFeatures.h (modified) (2 diffs)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/Shared/WebPreferencesDefaultValues.cpp (modified) (1 diff)
-
WebKit/Shared/WebPreferencesDefaultValues.h (modified) (1 diff)
-
WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.h (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r282130 r282137 1 2021-09-08 Jean-Yves Avenard <jya@apple.com> 2 3 Safari TP 131 audio canPlayType() reports false negatives 4 https://bugs.webkit.org/show_bug.cgi?id=229799 5 rdar://problem/82776747 6 7 Reviewed by Youenn Fablet. 8 9 * Scripts/Preferences/WebPreferencesExperimental.yaml: Remove preference. 10 1 11 2021-09-07 Sihui Liu <sihui_liu@apple.com> 2 12 -
trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml
r282130 r282137 1367 1367 default: WebKit::defaultWebMParserEnabled() 1368 1368 1369 WebMWebAudioEnabled:1370 type: bool1371 webcoreBinding: RuntimeEnabledFeatures1372 humanReadableName: "WebM Web Audio"1373 humanReadableDescription: "Enable WebM Web Audio"1374 condition: ENABLE(MEDIA_SOURCE)1375 defaultValue:1376 WebKitLegacy:1377 default: WebKit::defaultWebMWebAudioEnabled()1378 WebKit:1379 default: WebKit::defaultWebMWebAudioEnabled()1380 1381 1369 # FIXME: Is this implemented for WebKitLegacy? If not, this should be excluded from WebKitLegacy entirely. 1382 1370 WebRTCH264LowLatencyEncoderEnabled: -
trunk/Source/WebCore/ChangeLog
r282136 r282137 1 2021-09-08 Jean-Yves Avenard <jya@apple.com> 2 3 Safari TP 131 audio canPlayType() reports false negatives 4 https://bugs.webkit.org/show_bug.cgi?id=229799 5 rdar://problem/82776747 6 7 Reviewed by Youenn Fablet. 8 9 webaudio now supports the same webm content as the video and audio element, 10 making this workaround no longer necessary. 11 12 * html/HTMLMediaElement.cpp: 13 (WebCore::HTMLMediaElement::canPlayType const): Remove work around 14 * page/RuntimeEnabledFeatures.h: 15 (WebCore::RuntimeEnabledFeatures::webMParserEnabled const): Remove now unused method. 16 1 17 2021-09-08 Kimmo Kinnunen <kkinnunen@apple.com> 2 18 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r282059 r282137 1062 1062 } 1063 1063 1064 static inline bool webMWebAudioEnabled()1065 {1066 #if ENABLE(MEDIA_SOURCE)1067 return RuntimeEnabledFeatures::sharedFeatures().webMWebAudioEnabled();1068 #else1069 return false;1070 #endif1071 }1072 1073 1064 String HTMLMediaElement::canPlayType(const String& mimeType) const 1074 1065 { … … 1079 1070 MediaPlayer::SupportsType support = MediaPlayer::supportsType(parameters); 1080 1071 String canPlay; 1081 1082 #if PLATFORM(COCOA)1083 // Temporarily work around bug 226922. For now claim that the opus and vorbis codecs aren't supported1084 // so that sites relying on this test to determine if webaudio use of opus or vorbis won't error.1085 auto codecs = contentType.codecs();1086 if (support == MediaPlayer::SupportsType::IsSupported && ((codecs.contains("opus") || codecs.contains("vorbis")) && !webMWebAudioEnabled()))1087 support = MediaPlayer::SupportsType::IsNotSupported;1088 #endif1089 1072 1090 1073 // 4.8.10.3 -
trunk/Source/WebCore/page/RuntimeEnabledFeatures.h
r280930 r282137 236 236 void setWebMParserEnabled(bool isEnabled) { m_webMParserEnabled = isEnabled; } 237 237 bool webMParserEnabled() const { return m_webMParserEnabled; } 238 void setWebMWebAudioEnabled(bool isEnabled) { m_webMWebAudioEnabled = isEnabled; }239 bool webMWebAudioEnabled() const { return m_webMWebAudioEnabled; }240 238 #endif 241 239 … … 378 376 #if ENABLE(MEDIA_SOURCE) 379 377 bool m_webMParserEnabled { false }; 380 bool m_webMWebAudioEnabled { false };381 378 #endif 382 379 -
trunk/Source/WebKit/ChangeLog
r282130 r282137 1 2021-09-08 Jean-Yves Avenard <jya@apple.com> 2 3 Safari TP 131 audio canPlayType() reports false negatives 4 https://bugs.webkit.org/show_bug.cgi?id=229799 5 rdar://problem/82776747 6 7 Reviewed by Youenn Fablet. 8 9 * Shared/WebPreferencesDefaultValues.cpp: 10 * Shared/WebPreferencesDefaultValues.h: Remove no longer used method. 11 1 12 2021-09-07 Sihui Liu <sihui_liu@apple.com> 2 13 -
trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.cpp
r281201 r282137 315 315 } 316 316 317 bool defaultWebMWebAudioEnabled()318 {319 return isFeatureFlagEnabled("webm_webaudio", false);320 }321 322 317 #endif // ENABLE(MEDIA_SOURCE) 323 318 -
trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h
r280957 r282137 104 104 #if ENABLE(MEDIA_SOURCE) 105 105 bool defaultWebMParserEnabled(); 106 bool defaultWebMWebAudioEnabled();107 106 #endif 108 107 -
trunk/Source/WebKitLegacy/mac/ChangeLog
r282130 r282137 1 2021-09-08 Jean-Yves Avenard <jya@apple.com> 2 3 Safari TP 131 audio canPlayType() reports false negatives 4 https://bugs.webkit.org/show_bug.cgi?id=229799 5 rdar://problem/82776747 6 7 Reviewed by Youenn Fablet. 8 9 * WebView/WebPreferencesDefaultValues.h: 10 * WebView/WebPreferencesDefaultValues.mm: Remove no longer used method. 11 1 12 2021-09-07 Sihui Liu <sihui_liu@apple.com> 2 13 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.h
r280957 r282137 84 84 #if ENABLE(MEDIA_SOURCE) 85 85 bool defaultWebMParserEnabled(); 86 bool defaultWebMWebAudioEnabled();87 86 #endif 88 87 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.mm
r280961 r282137 283 283 } 284 284 285 bool defaultWebMWebAudioEnabled()286 {287 return isFeatureFlagEnabled("webm_webaudio", false);288 }289 290 285 #endif // ENABLE(MEDIA_SOURCE) 291 286
Note: See TracChangeset
for help on using the changeset viewer.