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

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

Issue 349523003: DevTools: Unescape urls when showing them in navigator/editor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « no previous file | 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/NetworkWorkspaceBinding.js
diff --git a/Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js b/Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js
index eda7781e6969009245357c3224a6d017e6dd0d62..99b8387f2c21ac0dc1b644dae63a1cdafc286479 100644
--- a/Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js
+++ b/Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js
@@ -129,8 +129,8 @@ WebInspector.NetworkWorkspaceBinding.prototype = {
{
var splitURL = WebInspector.ParsedURL.splitURL(url);
var projectName = splitURL[0];
- var parentPath = splitURL.slice(1, splitURL.length - 1).join("/");
- var name = splitURL[splitURL.length - 1];
+ var parentPath = unescape(splitURL.slice(1, splitURL.length - 1).join("/"));
lushnikov 2014/06/23 10:03:15 unescape is deprecated. Use decodeURI instead
+ var name = unescape(splitURL[splitURL.length - 1]);
var projectDelegate = this._projectDelegate(projectName, isContentScript || false);
var path = projectDelegate.addFile(parentPath, name, url, contentProvider);
var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (this._workspace.uiSourceCode(projectDelegate.id(), path));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698