Index: Source/devtools/front_end/sdk/NetworkManager.js |
diff --git a/Source/devtools/front_end/sdk/NetworkManager.js b/Source/devtools/front_end/sdk/NetworkManager.js |
index 5c226446405aa0d750e4e9a44db45a2f52090ce4..32f512ece92a5ed39babd54316e6eb6f039758d2 100644 |
--- a/Source/devtools/front_end/sdk/NetworkManager.js |
+++ b/Source/devtools/front_end/sdk/NetworkManager.js |
@@ -61,43 +61,9 @@ WebInspector.NetworkManager._MIMETypes = { |
"text/xml": {"document": true}, |
"text/plain": {"document": true}, |
"application/xhtml+xml": {"document": true}, |
+ "image/svg+xml": {"document": true}, |
"text/css": {"stylesheet": true}, |
"text/xsl": {"stylesheet": true}, |
- "image/jpg": {"image": true}, |
- "image/jpeg": {"image": true}, |
- "image/pjpeg": {"image": true}, |
- "image/png": {"image": true}, |
- "image/gif": {"image": true}, |
- "image/bmp": {"image": true}, |
- "image/svg+xml": {"image": true, "font": true, "document": true}, |
- "image/vnd.microsoft.icon": {"image": true}, |
- "image/webp": {"image": true}, |
- "image/x-icon": {"image": true}, |
- "image/x-xbitmap": {"image": true}, |
- "font/ttf": {"font": true}, |
- "font/otf": {"font": true}, |
- "font/woff": {"font": true}, |
- "font/woff2": {"font": true}, |
- "font/truetype": {"font": true}, |
- "font/opentype": {"font": true}, |
- "application/octet-stream": {"font": true, "image": true}, |
- "application/font-woff": {"font": true}, |
- "application/font-woff2": {"font": true}, |
- "application/x-font-woff": {"font": true}, |
- "application/x-font-type1": {"font": true}, |
- "application/x-font-ttf": {"font": true}, |
- "application/x-truetype-font": {"font": true}, |
- "text/javascript": {"script": true}, |
- "text/ecmascript": {"script": true}, |
- "application/javascript": {"script": true}, |
- "application/ecmascript": {"script": true}, |
- "application/x-javascript": {"script": true}, |
- "application/json": {"script": true}, |
- "text/javascript1.1": {"script": true}, |
- "text/javascript1.2": {"script": true}, |
- "text/javascript1.3": {"script": true}, |
- "text/jscript": {"script": true}, |
- "text/livescript": {"script": true}, |
"text/vtt": {"texttrack": true}, |
} |
@@ -288,11 +254,10 @@ WebInspector.NetworkDispatcher.prototype = { |
return true; |
var resourceType = networkRequest.resourceType(); |
- if (resourceType === undefined |
- || resourceType === WebInspector.resourceTypes.Other |
- || resourceType === WebInspector.resourceTypes.Media |
- || resourceType === WebInspector.resourceTypes.XHR |
- || resourceType === WebInspector.resourceTypes.WebSocket) |
+ |
+ if (resourceType !== WebInspector.resourceTypes.Stylesheet |
+ && resourceType !== WebInspector.resourceTypes.Document |
+ && resourceType !== WebInspector.resourceTypes.TextTrack) |
return true; |
if (!networkRequest.mimeType) |