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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js

Issue 2690293002: [Devtools] Redirect initiators link to redirected network request (Closed)
Patch Set: [Devtools] Redirect initiators link to redirected network request Created 3 years, 10 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: third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
index 174969dfbad76bbf3f52d5ecd619c2cbb35c0ab7..a584c6edda243766f2016ab2bdffedcda8f33d3f 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
@@ -828,7 +828,12 @@ Network.NetworkRequestNode = class extends Network.NetworkNode {
cell.title = initiator.url;
console.assert(request.redirectSource);
var redirectSource = /** @type {!SDK.NetworkRequest} */ (request.redirectSource);
- cell.appendChild(Components.Linkifier.linkifyURL(redirectSource.url()));
+ if (this.parentView().nodeForRequest(redirectSource)) {
+ cell.appendChild(
+ Components.Linkifier.linkifyRevealable(redirectSource, Bindings.displayNameForURL(redirectSource.url())));
+ } else {
+ cell.appendChild(Components.Linkifier.linkifyURL(redirectSource.url()));
+ }
this._appendSubtitle(cell, Common.UIString('Redirect'));
break;
« 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