Web Inspector: registered new MIME type application/font-woff for WOFF fonts.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Mar 2013 16:58:13 +0000 (16:58 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Mar 2013 16:58:13 +0000 (16:58 +0000)
https://bugs.webkit.org/show_bug.cgi?id=111418

The WOFF MIME Type was formally registered as application/font-woff (FINALLY):
http://www.iana.org/assignments/media-types/application/font-woff

Patch by Dmitry Zvorygin <zvorygin@chromium.org> on 2013-03-05
Reviewed by Pavel Feldman.

* inspector/front-end/NetworkManager.js:
(WebInspector.NetworkManager):
(WebInspector.NetworkDispatcher.prototype._updateNetworkRequestWithResponse):

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

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/NetworkManager.js

index 2faa12d..4e47138 100644 (file)
@@ -1,3 +1,17 @@
+2013-03-05  Dmitry Zvorygin  <zvorygin@chromium.org>
+
+        Web Inspector: registered new MIME type application/font-woff for WOFF fonts.
+        https://bugs.webkit.org/show_bug.cgi?id=111418
+
+        The WOFF MIME Type was formally registered as application/font-woff (FINALLY):
+        http://www.iana.org/assignments/media-types/application/font-woff
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/NetworkManager.js:
+        (WebInspector.NetworkManager):
+        (WebInspector.NetworkDispatcher.prototype._updateNetworkRequestWithResponse):
+
 2013-03-05  Julien Chaffraix  <jchaffraix@webkit.org>
 
         [CSS Grid Layout] Add parsing for grid-{end|after}
index 8eda186..47d8bcc 100644 (file)
@@ -71,10 +71,9 @@ WebInspector.NetworkManager._MIMETypes = {
     "image/x-xbitmap":             {"image": true},
     "font/ttf":                    {"font": true},
     "font/opentype":               {"font": true},
-    "font/woff":                   {"font": true},
+    "application/font-woff":       {"font": true},
     "application/x-font-type1":    {"font": true},
     "application/x-font-ttf":      {"font": true},
-    "application/x-font-woff":     {"font": true},
     "application/x-truetype-font": {"font": true},
     "text/javascript":             {"script": true},
     "text/ecmascript":             {"script": true},
@@ -182,7 +181,7 @@ WebInspector.NetworkDispatcher.prototype = {
 
         if (!this._mimeTypeIsConsistentWithType(networkRequest)) {
             WebInspector.console.addMessage(WebInspector.ConsoleMessage.create(WebInspector.ConsoleMessage.MessageSource.Network,
-                WebInspector.ConsoleMessage.MessageLevel.Warning,
+                WebInspector.ConsoleMessage.MessageLevel.Log,
                 WebInspector.UIString("Resource interpreted as %s but transferred with MIME type %s: \"%s\".", networkRequest.type.title(), networkRequest.mimeType, networkRequest.url),
                 WebInspector.ConsoleMessage.MessageType.Log,
                 "",