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

Side by Side 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: Comments addressed 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 /** 122 /**
123 * @param {string} url 123 * @param {string} url
124 * @param {!WebInspector.ContentProvider} contentProvider 124 * @param {!WebInspector.ContentProvider} contentProvider
125 * @param {boolean=} isContentScript 125 * @param {boolean=} isContentScript
126 * @return {!WebInspector.UISourceCode} 126 * @return {!WebInspector.UISourceCode}
127 */ 127 */
128 addFileForURL: function(url, contentProvider, isContentScript) 128 addFileForURL: function(url, contentProvider, isContentScript)
129 { 129 {
130 var splitURL = WebInspector.ParsedURL.splitURL(url); 130 var splitURL = WebInspector.ParsedURL.splitURL(url);
131 var projectName = splitURL[0]; 131 var projectName = splitURL[0];
132 var parentPath = splitURL.slice(1, splitURL.length - 1).join("/"); 132 var parentPath = decodeURI(splitURL.slice(1, splitURL.length - 1).join(" /"));
133 var name = splitURL[splitURL.length - 1]; 133 var name = decodeURI(splitURL[splitURL.length - 1]);
134 var projectDelegate = this._projectDelegate(projectName, isContentScript || false); 134 var projectDelegate = this._projectDelegate(projectName, isContentScript || false);
135 var path = projectDelegate.addFile(parentPath, name, url, contentProvide r); 135 var path = projectDelegate.addFile(parentPath, name, url, contentProvide r);
136 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (this._work space.uiSourceCode(projectDelegate.id(), path)); 136 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (this._work space.uiSourceCode(projectDelegate.id(), path));
137 console.assert(uiSourceCode); 137 console.assert(uiSourceCode);
138 return uiSourceCode; 138 return uiSourceCode;
139 }, 139 },
140 140
141 reset: function() 141 reset: function()
142 { 142 {
143 for (var projectId in this._projectDelegates) 143 for (var projectId in this._projectDelegates)
144 this._projectDelegates[projectId].reset(); 144 this._projectDelegates[projectId].reset();
145 this._projectDelegates = {}; 145 this._projectDelegates = {};
146 }, 146 },
147 147
148 __proto__: WebInspector.Object.prototype 148 __proto__: WebInspector.Object.prototype
149 } 149 }
OLDNEW
« 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