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

Unified Diff: Source/devtools/front_end/timeline/TimelineTreeView.js

Issue 1311593003: DevTools: [timeline tree] extract URL from event initiator (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressing comment Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TimelineTreeView.js
diff --git a/Source/devtools/front_end/timeline/TimelineTreeView.js b/Source/devtools/front_end/timeline/TimelineTreeView.js
index 0bf6de842e1dd08fe1c0206a41248d53cff99abc..cf9501c53febf9d80288baeb7034dd95b8aa440a 100644
--- a/Source/devtools/front_end/timeline/TimelineTreeView.js
+++ b/Source/devtools/front_end/timeline/TimelineTreeView.js
@@ -291,7 +291,12 @@ WebInspector.TimelineTreeView.eventURL = function(event)
if (url)
return url;
var topFrame = event.stackTrace && event.stackTrace[0];
- return topFrame && topFrame["url"] || null;
+ url = topFrame && topFrame["url"];
+ if (url)
+ return url;
+ var initiator = event.initiator;
+ var initiatorTopFrame = initiator && initiator.stackTrace && initiator.stackTrace[0];
+ return initiatorTopFrame && initiatorTopFrame["url"] || null;
}
/**
« 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