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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js

Issue 2266473003: [Devtools] [Regression fix] Network Requests with data urls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Devtools] [Regression fix] Network Requests with data urls Created 4 years, 4 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 | « third_party/WebKit/LayoutTests/http/tests/inspector/network/request-name-path-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
index 6bdd17b923e6d95e8b1843552af3c56ff0c7e3ca..0b6bebd92a6ae68b2156d47c9bbf750601702d9c 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
@@ -570,7 +570,8 @@ WebInspector.NetworkRequest.prototype = {
} else {
this._path = this._parsedURL.host + this._parsedURL.folderPathComponents;
- this._path = this._path.trimURL(this.target().inspectedURL().asParsedURL().host);
+ var inspectedURL = this.target().inspectedURL().asParsedURL();
+ this._path = this._path.trimURL(inspectedURL ? inspectedURL.host : "");
if (this._parsedURL.lastPathComponent || this._parsedURL.queryParams)
this._name = this._parsedURL.lastPathComponent + (this._parsedURL.queryParams ? "?" + this._parsedURL.queryParams : "");
else if (this._parsedURL.folderPathComponents) {
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/network/request-name-path-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698