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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js

Issue 1418293002: Devtools: Extensible mime typing, mime typing by file name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add url function to mock project Created 5 years, 1 month 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
Index: third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
index 247f2ea653ef81923ac6e580628d71983f360d2c..35bc0f829e87970b485e36e52857f2b173f6b8b3 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
@@ -95,7 +95,7 @@ WebInspector.SourcesView.uiSourceCodeHighlighterType = function(uiSourceCode)
if (networkContentType)
return networkContentType.canonicalMimeType();
- var mimeType = WebInspector.ResourceType.mimeTypesForExtensions[uiSourceCode.extension().toLowerCase()];
+ var mimeType = WebInspector.ResourceType.mimeFromURL(uiSourceCode.uri());
return mimeType || uiSourceCode.contentType().canonicalMimeType();
}

Powered by Google App Engine
This is Rietveld 408576698