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

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

Issue 656453002: DevTools: [SSP] show links for matched styles with spaces in source URL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline Created 6 years, 2 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: Source/devtools/front_end/bindings/DefaultScriptMapping.js
diff --git a/Source/devtools/front_end/bindings/DefaultScriptMapping.js b/Source/devtools/front_end/bindings/DefaultScriptMapping.js
index c29e4a301521273edf78602c5f963bd31dd4da12..d705865017f538779d7f51c08e20a4a60ea63024 100644
--- a/Source/devtools/front_end/bindings/DefaultScriptMapping.js
+++ b/Source/devtools/front_end/bindings/DefaultScriptMapping.js
@@ -175,7 +175,7 @@ WebInspector.DebuggerProjectDelegate.prototype = {
addScript: function(script)
{
var contentProvider = script.isInlineScript() && !script.hasSourceURL ? new WebInspector.ConcatenatedScriptsContentProvider([script]) : script;
- var splitURL = WebInspector.ParsedURL.splitURL(script.sourceURL);
+ var splitURL = WebInspector.ParsedURL.splitURLIntoPathComponents(script.sourceURL);
var name = splitURL[splitURL.length - 1];
name = "VM" + script.scriptId + (name ? " " + name : "");
return this.addContentProvider("", name, script.sourceURL, script.sourceURL, contentProvider);

Powered by Google App Engine
This is Rietveld 408576698