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

Unified Diff: Source/devtools/front_end/common/ParsedURL.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
« no previous file with comments | « Source/devtools/front_end/bindings/NetworkWorkspaceBinding.js ('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/common/ParsedURL.js
diff --git a/Source/devtools/front_end/common/ParsedURL.js b/Source/devtools/front_end/common/ParsedURL.js
index 43ad46ec94c512d64d1c859435c373bf8e8c6ed1..0f093e52ce94cf78a7b4a38f45d94b610f7db05a 100644
--- a/Source/devtools/front_end/common/ParsedURL.js
+++ b/Source/devtools/front_end/common/ParsedURL.js
@@ -92,7 +92,11 @@ WebInspector.ParsedURL = function(url)
*/
WebInspector.ParsedURL.splitURLIntoPathComponents = function(url)
{
- var parsedURL = new WebInspector.ParsedURL(decodeURI(url));
+ var decodedURL = url;
+ try {
+ decodedURL = decodeURI(url);
+ } catch (e) { }
+ var parsedURL = new WebInspector.ParsedURL(decodedURL);
var origin;
var folderPath;
var name;
« no previous file with comments | « Source/devtools/front_end/bindings/NetworkWorkspaceBinding.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698