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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js

Issue 1984103004: DevTools: Add initiator field to timeline network events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update the test Created 4 years, 7 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: third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js
index 8cd0cfaa5c03af5bb24a68bddbf2f6adbf535d96..baa04a97971218a3b5812d7b5c29430532ff99ce 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js
@@ -824,6 +824,7 @@ WebInspector.TimelineModel.prototype = {
case recordTypes.ResourceSendRequest:
case recordTypes.WebSocketCreate:
event.url = event.args["data"]["url"];
+ event.initiator = eventStack.peekLast() || null;
break;
case recordTypes.ScheduleStyleRecalculation:

Powered by Google App Engine
This is Rietveld 408576698