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 0be79379ee67b4d23c38daae2ba683e6723e5f73..7dd38c627aaad186e1d414ffbf5b305778d08b3a 100644 |
--- a/Source/devtools/front_end/sdk/NetworkManager.js |
+++ b/Source/devtools/front_end/sdk/NetworkManager.js |
@@ -60,43 +60,9 @@ WebInspector.NetworkManager._MIMETypes = { |
"text/xml": {"document": true}, |
"text/plain": {"document": true}, |
"application/xhtml+xml": {"document": true}, |
+ "image/svg+xml": {"document": true}, |
paulirish
2015/02/24 20:32:00
Good idea ^
|
"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}, |
pfeldman
2015/02/24 20:27:58
Leave this w/ document: true only?
|
- "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}, |
} |
@@ -265,11 +231,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) |