Changeset 24872 in webkit


Ignore:
Timestamp:
Aug 4, 2007 9:21:52 PM (17 years ago)
Author:
aroben
Message:

Another workaround for <rdar://problem/5386894>

Reviewed by Sam.

This fixed ~150 failing tests.

  • platform/network/cf/ResourceResponseCFNet.cpp: (WebCore::ResourceResponse::doUpdateResourceResponse): Hardcode the MIME type for .svg files as well.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r24871 r24872  
     12007-08-04  Adam Roben  <aroben@apple.com>
     2
     3        Another workaround for <rdar://problem/5386894>
     4
     5        Reviewed by Sam.
     6
     7        This fixed ~150 failing tests.
     8
     9        * platform/network/cf/ResourceResponseCFNet.cpp:
     10        (WebCore::ResourceResponse::doUpdateResourceResponse): Hardcode the
     11        MIME type for .svg files as well.
     12
    1132007-08-04  Adam Roben  <aroben@apple.com>
    214
  • trunk/WebCore/platform/network/cf/ResourceResponseCFNet.cpp

    r24871 r24872  
    125125        static const String xhtmlExt(".xhtml");
    126126        static const String xmlExt(".xml");
     127        static const String svgExt(".svg");
    127128        if (path.endsWith(xhtmlExt, false))
    128129            m_mimeType = "application/xhtml+xml";
    129130        else if (path.endsWith(xmlExt, false))
    130131            m_mimeType = "text/xml";
     132        else if (path.endsWith(svgExt, false))
     133            m_mimeType = "image/svg+xml";
    131134    }
    132135}
Note: See TracChangeset for help on using the changeset viewer.