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

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

Issue 661983003: DevTools: bring back exception handling in URL decoding (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
Index: Source/devtools/front_end/bindings/NetworkWorkspaceBinding.js
diff --git a/Source/devtools/front_end/bindings/NetworkWorkspaceBinding.js b/Source/devtools/front_end/bindings/NetworkWorkspaceBinding.js
index ede705213cc13c848fc978e7d4e0f3f90e06302f..50eac90d8afb78a6478642f6803e444223c4bdb3 100644
--- a/Source/devtools/front_end/bindings/NetworkWorkspaceBinding.js
+++ b/Source/devtools/front_end/bindings/NetworkWorkspaceBinding.js
@@ -138,13 +138,7 @@ WebInspector.NetworkWorkspaceBinding.prototype = {
var splitURL = WebInspector.ParsedURL.splitURLIntoPathComponents(url);
var projectName = splitURL[0];
var parentPath = splitURL.slice(1, -1).join("/");
- try {
- parentPath = parentPath;
- } catch (e) { }
var name = splitURL.peekLast() || "";
- try {
- name = name;
- } catch (e) { }
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 | « LayoutTests/inspector/sources/debugger/navigator-view-expected.txt ('k') | Source/devtools/front_end/common/ParsedURL.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698