Changeset 61110 in webkit


Ignore:
Timestamp:
Jun 13, 2010 11:32:02 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-13 Charles Wei <charles.wei@torchmobile.com.cn>

Reviewed by George Staikos.

Test case to verify that MIME type in uppercase (TEXT/HTML) is supported.
https://bugs.webkit.org/show_bug.cgi?id=39492

  • http/tests/mime/resources/uppercase-mime-type.php: Added.
  • http/tests/mime/uppercase-mime-type-expected.txt: Added.
  • http/tests/mime/uppercase-mime-type.html: Added.

2010-06-13 Charles Wei <charles.wei@torchmobile.com.cn>

Reviewed by George Staikos.

Fix the QtWebKit which doesn't recognize the MIME type of HTML/TEXT in uppercase
https://bugs.webkit.org/show_bug.cgi?id=39492

  • WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::canShowMIMEType):
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r61103 r61110  
     12010-06-13  Charles Wei  <charles.wei@torchmobile.com.cn>
     2
     3        Reviewed by George Staikos.
     4
     5        Test case to verify that MIME type in uppercase (TEXT/HTML) is supported.
     6        https://bugs.webkit.org/show_bug.cgi?id=39492
     7
     8        * http/tests/mime/resources/uppercase-mime-type.php: Added.
     9        * http/tests/mime/uppercase-mime-type-expected.txt: Added.
     10        * http/tests/mime/uppercase-mime-type.html: Added.
     11
    1122010-06-13  Chris Fleizach  <cfleizach@apple.com>
    213
  • trunk/WebKit/qt/ChangeLog

    r61090 r61110  
     12010-06-13  Charles Wei  <charles.wei@torchmobile.com.cn>
     2
     3        Reviewed by George Staikos.
     4
     5        Fix the QtWebKit which doesn't recognize the MIME type of HTML/TEXT in uppercase
     6        https://bugs.webkit.org/show_bug.cgi?id=39492
     7
     8        * WebCoreSupport/FrameLoaderClientQt.cpp:
     9        (WebCore::FrameLoaderClientQt::canShowMIMEType):
     10
    1112010-06-08  Robert Hogan  <robert@webkit.org>
    212
  • trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp

    r60566 r61110  
    543543bool FrameLoaderClientQt::canShowMIMEType(const String& MIMEType) const
    544544{
    545     if (MIMETypeRegistry::isSupportedImageMIMEType(MIMEType))
     545    String type = MIMEType;
     546    type.makeLower();
     547    if (MIMETypeRegistry::isSupportedImageMIMEType(type))
    546548        return true;
    547549
    548     if (MIMETypeRegistry::isSupportedNonImageMIMEType(MIMEType))
     550    if (MIMETypeRegistry::isSupportedNonImageMIMEType(type))
    549551        return true;
    550552
    551553    if (m_frame && m_frame->settings()  && m_frame->settings()->arePluginsEnabled()
    552         && PluginDatabase::installedPlugins()->isMIMETypeRegistered(MIMEType))
     554        && PluginDatabase::installedPlugins()->isMIMETypeRegistered(type))
    553555        return true;
    554556
Note: See TracChangeset for help on using the changeset viewer.