Index: Source/devtools/front_end/NetworkUISourceCodeProvider.js |
diff --git a/Source/devtools/front_end/NetworkUISourceCodeProvider.js b/Source/devtools/front_end/NetworkUISourceCodeProvider.js |
index a3c641f4cd379c3a521979c785550964f0669145..3dd1c8c1211e550318ecd47d03a662c36998c19e 100644 |
--- a/Source/devtools/front_end/NetworkUISourceCodeProvider.js |
+++ b/Source/devtools/front_end/NetworkUISourceCodeProvider.js |
@@ -131,9 +131,11 @@ WebInspector.NetworkUISourceCodeProvider.prototype = { |
return; |
if (this._processedURLs[url]) |
return; |
+ var mimeType = type.canonicalMimeType(); |
+ var overridingContentProvider = new WebInspector.ContentProviderOverridingMimeType(contentProvider, mimeType); |
this._processedURLs[url] = true; |
var isEditable = type !== WebInspector.resourceTypes.Document; |
- this._networkWorkspaceProvider.addFileForURL(url, contentProvider, isEditable, isContentScript); |
+ this._networkWorkspaceProvider.addFileForURL(url, overridingContentProvider, isEditable, isContentScript); |
}, |
_reset: function() |