2008-01-25 U-SLEWIS-WIN\Stephanie <slewis@apple.com>
authorslewis@apple.com <slewis@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 26 Jan 2008 01:09:43 +0000 (01:09 +0000)
committerslewis@apple.com <slewis@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 26 Jan 2008 01:09:43 +0000 (01:09 +0000)
         Reviewed by Tim.

         expand workaround for <rdar://5695848> to include js files so that the
         web inspector can work

         * platform/network/cf/ResourceResponseCFNet.cpp:
         (WebCore::ResourceResponse::doUpdateResourceResponse):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29800 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/network/cf/ResourceResponseCFNet.cpp

index ce5e6b1..99a6696 100644 (file)
@@ -1,3 +1,13 @@
+2008-01-25  U-SLEWIS-WIN\Stephanie  <slewis@apple.com>
+
+        Reviewed by Tim.
+
+        expand workaround for <rdar://5695848> to include js files so that the
+        web inspector can work
+
+        * platform/network/cf/ResourceResponseCFNet.cpp:
+        (WebCore::ResourceResponse::doUpdateResourceResponse):
+
 2008-01-25  Antti Koivisto  <antti@apple.com>
 
         Reviewed by Adele.
index e77b380..ebe1cda 100644 (file)
@@ -104,12 +104,15 @@ void ResourceResponse::doUpdateResourceResponse()
         static const String htmlExt(".html");
         static const String xmlExt(".xml");
         static const String svgExt(".svg");
+        static const String jsExt(".js");
         if (path.endsWith(xhtmlExt, false))
             m_mimeType = "application/xhtml+xml";
         else if (path.endsWith(htmlExt, false))
             m_mimeType = "text/html";
         else if (path.endsWith(xmlExt, false))
             m_mimeType = "text/xml";
+        else if (path.endsWith(jsExt, false))
+            m_mimeType = "text/javascript";
         else if (path.endsWith(svgExt, false))
             m_mimeType = "image/svg+xml";
     }