[Webkit-unassigned] [Bug 221695] [GPUP] <audio> won't load when URL ends with .php causing some tests to time out
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 10 17:12:19 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=221695
--- Comment #7 from Chris Dumez <cdumez at apple.com> ---
This makes 2 out of the 4 tests pass:
diff --git a/Source/WebCore/platform/graphics/MediaPlayer.cpp b/Source/WebCore/platform/graphics/MediaPlayer.cpp
index 2bc8070055ca..7ecf2d09b085 100644
--- a/Source/WebCore/platform/graphics/MediaPlayer.cpp
+++ b/Source/WebCore/platform/graphics/MediaPlayer.cpp
@@ -577,7 +577,7 @@ void MediaPlayer::loadWithNextMediaEngine(const MediaPlayerFactory* current)
if (m_private) {
#if ENABLE(MEDIA_SOURCE)
if (m_mediaSource)
- m_private->load(m_url, m_contentType, m_mediaSource.get());
+ m_private->load(m_url, m_contentMIMETypeWasInferredFromExtension ? ContentType() : m_contentType, m_mediaSource.get());
else
#endif
#if ENABLE(MEDIA_STREAM)
@@ -585,7 +585,7 @@ void MediaPlayer::loadWithNextMediaEngine(const MediaPlayerFactory* current)
m_private->load(*m_mediaStream);
else
#endif
- m_private->load(m_url, m_contentType, m_keySystem);
+ m_private->load(m_url, m_contentMIMETypeWasInferredFromExtension ? ContentType() : m_contentType, m_keySystem);
} else {
m_private = makeUnique<NullMediaPlayerPrivate>(this);
if (!m_activeEngineIdentifier && installedMediaEngines().size() > 1 && nextBestMediaEngine(m_currentMediaEngine))
The other 2 tests (the "allowed" variants) still fail because it seems we are rendering silence. I am not sure if this means the fix is wrong or if there are 2 separate bugs.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210211/3ce6999a/attachment.htm>
More information about the webkit-unassigned
mailing list