Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1896)

Unified Diff: Source/devtools/front_end/sdk/NetworkManager.js

Issue 1030473002: DevTools: Ignore mimetype mismatch for Image, Script, StyleSheet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698