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

Unified Diff: Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js

Issue 432753003: DevTools: Fix url assignment when renaming files in workspace (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a test and fixed correctly Created 6 years, 5 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/sources/debugger/file-system-project-mapping-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/sdk/FileSystemWorkspaceBinding.js
diff --git a/Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js b/Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js
index e7bf68d15bd883e4fd6d783dcfad62c5669efbe0..7a7e217c0f25a72945b17777dd1cd22554a68875 100644
--- a/Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js
+++ b/Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js
@@ -322,6 +322,7 @@ WebInspector.FileSystemWorkspaceBinding.FileSystem.prototype = {
var slash = filePath.lastIndexOf("/");
var parentPath = filePath.substring(0, slash);
filePath = parentPath + "/" + validNewName;
+ filePath = filePath.substr(1);
var newURL = this._workspace.urlForPath(this._fileSystem.path(), filePath);
var extension = this._extensionForPath(validNewName);
var newOriginURL = this._fileSystemURL + filePath
« no previous file with comments | « LayoutTests/inspector/sources/debugger/file-system-project-mapping-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698