Commit c61a6efb authored by jer.noble@apple.com's avatar jer.noble@apple.com

REGRESSION(r158288): media/media-can-play-mpeg4-video.html fails

https://bugs.webkit.org/show_bug.cgi?id=123530

Reviewed by Eric Carlson.

Source/WebCore:

Lower case the mime type before passing it along to MediaPlayer.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::canPlayType):
(WebCore::HTMLMediaElement::selectNextSourceChild):

LayoutTests:

* TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ae921fd2
2013-10-30 Jer Noble <jer.noble@apple.com>
REGRESSION(r158288): media/media-can-play-mpeg4-video.html fails
https://bugs.webkit.org/show_bug.cgi?id=123530
Reviewed by Eric Carlson.
* TestExpectations:
2013-10-30 Santosh Mahto <santosh.ma@samsung.com>
contentEditable deleting lists when list items are block level
......
......@@ -75,5 +75,3 @@ fast/mediastream/MediaStream-onended.html [ Skip ]
webkit.org/b/122679 security/crypto-subtle-gc.html [ Skip ]
webkit.org/b/122679 security/crypto-subtle-gc-2.html [ Skip ]
webkit.org/b/122679 security/crypto-subtle-gc-3.html [ Skip ]
webkit.org/b/123530 media/media-can-play-mpeg4-video.html [ Failure ]
2013-10-30 Jer Noble <jer.noble@apple.com>
REGRESSION(r158288): media/media-can-play-mpeg4-video.html fails
https://bugs.webkit.org/show_bug.cgi?id=123530
Reviewed by Eric Carlson.
Lower case the mime type before passing it along to MediaPlayer.
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::canPlayType):
(WebCore::HTMLMediaElement::selectNextSourceChild):
2013-10-30 Alexey Proskuryakov <ap@apple.com>
Add a way to fulfill promises from DOM code
......
......@@ -764,7 +764,7 @@ String HTMLMediaElement::canPlayType(const String& mimeType, const String& keySy
{
MediaEngineSupportParameters parameters;
ContentType contentType(mimeType);
parameters.type = contentType.type();
parameters.type = contentType.type().lower();
parameters.codecs = contentType.parameter(ASCIILiteral("codecs"));
parameters.url = url;
#if ENABLE(ENCRYPTED_MEDIA)
......@@ -3533,7 +3533,7 @@ URL HTMLMediaElement::selectNextSourceChild(ContentType* contentType, String* ke
#endif
MediaEngineSupportParameters parameters;
ContentType contentType(type);
parameters.type = contentType.type();
parameters.type = contentType.type().lower();
parameters.codecs = contentType.parameter(ASCIILiteral("codecs"));
parameters.url = mediaURL;
#if ENABLE(ENCRYPTED_MEDIA)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment