Skip to content
  • rwlbuis@webkit.org's avatar
    [BlackBerry] Rendering bmp file as text file when Content-Type:image/x-ms-bmp... · 5af9fc2c
    rwlbuis@webkit.org authored
    [BlackBerry] Rendering bmp file as text file when Content-Type:image/x-ms-bmp from apache web server.
    https://bugs.webkit.org/show_bug.cgi?id=85036
    
    Reviewed by Antonio Gomes.
    
    Source/WebCore:
    
    Move getNormalizedMIMEType from WebKit into MIMETypeRegistry. This way we support uncommon mime types like image/pjpeg
    and image/x-ms-bmp out of the box since we map to the more common image/jpeg and image/bmp respectively.
    
    * platform/MIMETypeRegistry.cpp:
    (WebCore::initializeSupportedImageMIMETypes):
    (WebCore::MIMETypeRegistry::isSupportedImageMIMEType):
    (WebCore::MIMETypeRegistry::isSupportedImageResourceMIMEType):
    (WebCore):
    (WebCore::mimeTypeAssociationMap):
    (WebCore::MIMETypeRegistry::getNormalizedMIMEType):
    * platform/MIMETypeRegistry.h:
    (MIMETypeRegistry):
    
    Source/WebKit/blackberry:
    
    Move getNormalizedMIMEType into WebCore::MIMETypeRegistry.
    
    * Api/WebSettings.cpp:
    (WebKit):
    (BlackBerry::WebKit::WebSettings::isSupportedObjectMIMEType):
    * Api/WebSettings.h:
    * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
    (WebCore::FrameLoaderClientBlackBerry::createPlugin):
    (WebCore::FrameLoaderClientBlackBerry::canShowMIMEType):
    (WebCore::FrameLoaderClientBlackBerry::objectContentType):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    5af9fc2c