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

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

Issue 2581423002: DevTools: Decorate requests from SW on Timeline (Closed)
Patch Set: Created 4 years 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/Source/devtools/front_end/timeline/TimelineNetworkFlameChart.js ('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/timeline_model/TimelineModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js
index 911a3f1faf4532ba48cc9fe89d64a052c393bda2..f3c3950915f7e7f8bf3e69a15803dbbcc2d74d2b 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js
@@ -735,13 +735,13 @@ TimelineModel.TimelineModel = class {
case recordTypes.EventDispatch:
if (event.duration > TimelineModel.TimelineModel.Thresholds.RecurringHandler)
- timelineData.warning = TimelineModel.TimelineModel.WarningType.LongHandler;
+ timelineData.warning = TimelineModel.TimelineModel.WarningType.LongHandler;
break;
case recordTypes.TimerFire:
case recordTypes.FireAnimationFrame:
if (event.duration > TimelineModel.TimelineModel.Thresholds.RecurringHandler)
- timelineData.warning = TimelineModel.TimelineModel.WarningType.LongRecurringHandler;
+ timelineData.warning = TimelineModel.TimelineModel.WarningType.LongRecurringHandler;
break;
case recordTypes.FunctionCall:
@@ -1513,6 +1513,8 @@ TimelineModel.TimelineModel.NetworkRequest = class {
this.requestMethod = eventData['requestMethod'];
if (!this.timing)
this.timing = eventData['timing'];
+ if (eventData['fromServiceWorker'])
+ this.fromServiceWorker = true;
}
};
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelineNetworkFlameChart.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698