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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js

Issue 2889013002: DevTools: introduce uiSourceCode.mimeType() method (Closed)
Patch Set: address comments Created 3 years, 7 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
Index: third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js
index 0d0607674df2ffb6c17fb202cc2772e71f79b673..c98dce7f8d2999cf10864436f158c99d8588d535 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js
@@ -105,7 +105,7 @@ Bindings.DefaultScriptMapping = class {
var uiSourceCode = this._project.createUISourceCode(url, Common.resourceTypes.Script);
uiSourceCode[Bindings.DefaultScriptMapping._scriptSymbol] = script;
script[Bindings.DefaultScriptMapping._uiSourceCodeSymbol] = uiSourceCode;
- this._project.addUISourceCodeWithProvider(uiSourceCode, script, null);
+ this._project.addUISourceCodeWithProvider(uiSourceCode, script, null, 'text/javascript');
this._debuggerWorkspaceBinding.setSourceMapping(this._debuggerModel, uiSourceCode, this);
this._debuggerWorkspaceBinding.pushSourceMapping(script, this);

Powered by Google App Engine
This is Rietveld 408576698