Skip to content
Permalink
Browse files
2010-10-27 Crystal Zhang <haizhang@rim.com>
        Reviewed by Eric Carlson.

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

        Fix an issue where we were passing the wrong parameter
        to MIMETypeRegistry::getMIMETypeForExtension().

        * platform/MIMETypeRegistry.cpp:

Canonical link: https://commits.webkit.org/61214@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@70695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
webkit-commit-queue committed Oct 27, 2010
1 parent 78703c8 commit d2e4ebe2c9b9aacda40141478e31144ac019d496
Showing 2 changed files with 12 additions and 1 deletion.
@@ -1,3 +1,14 @@
2010-10-27 Crystal Zhang <haizhang@rim.com>

Reviewed by Eric Carlson.

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

Fix an issue where we were passing the wrong parameter
to MIMETypeRegistry::getMIMETypeForExtension().

* platform/MIMETypeRegistry.cpp:

2010-10-27 David Hyatt <hyatt@apple.com>

Reviewed by Beth Dakin.
@@ -329,7 +329,7 @@ static MediaMIMETypeMap& mediaMIMETypeMap()

// If there is a system specific type for this extension, add it as the first type so
// getMediaMIMETypeForExtension will always return it.
String systemType = MIMETypeRegistry::getMIMETypeForExtension(pairs[ndx].type);
String systemType = MIMETypeRegistry::getMIMETypeForExtension(pairs[ndx].extension);
if (!systemType.isEmpty() && pairs[ndx].type != systemType)
synonyms->append(systemType);
synonyms->append(pairs[ndx].type);

0 comments on commit d2e4ebe

Please sign in to comment.