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

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

Issue 922213004: DevTools: Ignore mimetype mismatch for Image, Script, StyleSheet (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase-update was drunk 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/stylesheet-as-text-loading-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 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)
« no previous file with comments | « LayoutTests/http/tests/inspector/network/stylesheet-as-text-loading-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698