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

Unified Diff: Source/devtools/front_end/workspace/Workspace.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: 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
« no previous file with comments | « LayoutTests/inspector/elements/styles/styles-with-spaces-in-sourceURL-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/workspace/Workspace.js
diff --git a/Source/devtools/front_end/workspace/Workspace.js b/Source/devtools/front_end/workspace/Workspace.js
index 5b854ae9ee58034cb02d6f84565efb98896753af..5d1e105290c632f5b1ad6d700f67b7fcc2b46ac6 100644
--- a/Source/devtools/front_end/workspace/Workspace.js
+++ b/Source/devtools/front_end/workspace/Workspace.js
@@ -735,7 +735,8 @@ WebInspector.Workspace.prototype = {
var splitURL = WebInspector.ParsedURL.splitURL(url);
var projectId = splitURL[0];
var project = this.project(projectId);
- return project ? project.uiSourceCode(splitURL.slice(1).join("/")) : null;
+ var path = decodeURI(splitURL.slice(1).join("/"));
+ return project ? project.uiSourceCode(path) : null;
},
/**
@@ -747,7 +748,8 @@ WebInspector.Workspace.prototype = {
var splitURL = WebInspector.ParsedURL.splitURL(url);
var projectId = "contentscripts:" + splitURL[0];
var project = this.project(projectId);
- return project ? project.uiSourceCode(splitURL.slice(1).join("/")) : null;
+ var path = decodeURI(splitURL.slice(1).join("/"));
vsevik 2014/10/14 07:41:04 you are doing decodeURI for the full path here whe
+ return project ? project.uiSourceCode(path) : null;
},
/**
« no previous file with comments | « LayoutTests/inspector/elements/styles/styles-with-spaces-in-sourceURL-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698