| 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 dcadc76fe2f81752b184068f5afc33ead85a13c7..2141ebac0dda66f898ec00c929a21087262cf4eb 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,12 +254,11 @@ 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)
|
| return true; // Might be not known for cached resources with null responses.
|
|
|