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 85ea5cb6838f0288e048804f421c5de3a6010af5..61304ffd74fc4eb1f0441f6fc113ef73da3bed40 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js |
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js |
@@ -41,7 +41,7 @@ WebInspector.DefaultScriptMapping = function(debuggerModel, workspace, debuggerW |
this._debuggerWorkspaceBinding = debuggerWorkspaceBinding; |
this._workspace = workspace; |
this._projectId = WebInspector.DefaultScriptMapping.projectIdForTarget(debuggerModel.target()); |
- this._project = new WebInspector.ContentProviderBasedProject(this._workspace, this._projectId, WebInspector.projectTypes.Debugger, "debugger:", ""); |
+ this._project = new WebInspector.ContentProviderBasedProject(this._workspace, this._projectId, WebInspector.projectTypes.Debugger, ""); |
debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.GlobalObjectCleared, this._debuggerReset, this); |
this._debuggerReset(); |
} |
@@ -88,9 +88,9 @@ WebInspector.DefaultScriptMapping.prototype = { |
var splitURL = WebInspector.ParsedURL.splitURLIntoPathComponents(script.sourceURL); |
var name = splitURL[splitURL.length - 1]; |
- name = "VM" + script.scriptId + (name ? " " + name : ""); |
+ name = "debugger:///VM" + script.scriptId + (name ? "(" + name + ")" : ""); |
dgozman
2015/12/15 22:22:47
" (" looks better
pfeldman
2015/12/16 01:34:28
Needed to revert it to " " since I want to preserv
|
- var uiSourceCode = this._project.createUISourceCode("", name, script.sourceURL, WebInspector.resourceTypes.Script); |
+ var uiSourceCode = this._project.createUISourceCode(name, WebInspector.resourceTypes.Script); |
this._uiSourceCodeForScriptId.set(script.scriptId, uiSourceCode); |
this._scriptIdForUISourceCode.set(uiSourceCode, script.scriptId); |
this._project.addUISourceCodeWithProvider(uiSourceCode, script); |