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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js

Issue 2587533002: DevTools: consistently use relative name for filesystem resources. (Closed)
Patch Set: same Created 4 years 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/workspace/UISourceCode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
index 0979e6e0b301302803df054450025f58d676a19e..5ca19f105ede0d9b32a74667ec4c3b965c25a421 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
@@ -109,12 +109,7 @@ Workspace.UISourceCode = class extends Common.Object {
* @return {string}
*/
fullDisplayName() {
- var parentPath = this._parentURL.replace(/^(?:https?|file)\:\/\//, '');
- try {
- parentPath = decodeURI(parentPath);
- } catch (e) {
- }
- return parentPath + '/' + this.displayName(true);
+ return this._project.fullDisplayName(this);
}
/**

Powered by Google App Engine
This is Rietveld 408576698