Commit beb7877d authored by kov@webkit.org's avatar kov@webkit.org

WebCore:

2009-09-16  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        [GTK] Crash when visiting http://flipper.googlelabs.com/
        https://bugs.webkit.org/show_bug.cgi?id=29293

        Check type for being null or empty before looking it up in the
        hash of supported types.

        Tested by http/tests/loading/redirect-with-no-location-crash.html

        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::MediaPlayerPrivate::supportsType):

LayoutTests:

2009-09-16  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        [GTK] Crash when visiting http://flipper.googlelabs.com/
        https://bugs.webkit.org/show_bug.cgi?id=29293

        * http/tests/loading/redirect-with-no-location-crash.html: Added.
        * http/tests/loading/redirect-with-no-location-crash-expected.html: Added.
        * http/tests/loading/resources/redirect-with-no-location-crash.php: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48413 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b8bb813b
2009-09-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
Reviewed by Xan Lopez.
[GTK] Crash when visiting http://flipper.googlelabs.com/
https://bugs.webkit.org/show_bug.cgi?id=29293
* http/tests/loading/redirect-with-no-location-crash.html: Added.
* http/tests/loading/redirect-with-no-location-crash-expected.html: Added.
* http/tests/loading/resources/redirect-with-no-location-crash.php: Added.
2009-09-15 Chris Fleizach <cfleizach@apple.com>
WAI-ARIA: add support for ranges, including the progressbar, slider, and spinbutton roles
......
<html>
<head>
<title>Test for https://bugs.webkit.org/show_bug.cgi?id=29293</title>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
</head>
<body>
<iframe src="resources/redirect-with-no-location-crash.php"></iframe>
</body>
<html>
2009-09-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
Reviewed by Xan Lopez.
[GTK] Crash when visiting http://flipper.googlelabs.com/
https://bugs.webkit.org/show_bug.cgi?id=29293
Check type for being null or empty before looking it up in the
hash of supported types.
Tested by http/tests/loading/redirect-with-no-location-crash.html
* platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivate::supportsType):
2009-09-15 Geoffrey Garen <ggaren@apple.com>
Reviewed by Sam Weinig.
......@@ -692,6 +692,9 @@ void MediaPlayerPrivate::getSupportedTypes(HashSet<String>& types)
MediaPlayer::SupportsType MediaPlayerPrivate::supportsType(const String& type, const String& codecs)
{
if (type.isNull() || type.isEmpty())
return MediaPlayer::IsNotSupported;
if (mimeTypeCache().contains(type))
return !codecs.isEmpty() ? MediaPlayer::MayBeSupported : MediaPlayer::IsSupported;
return MediaPlayer::IsNotSupported;
......
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