Bug 1371494 - Save All As HAR does not populate log.entries[x].time r=Honza a=jcristau
authorRicky Chien <ricky060709@gmail.com>
Fri, 23 Jun 2017 23:06:37 +0800
changeset 606001 2d21d6589eea5164cd65e9e1393a729fab1da0d0
parent 606000 576befa40dcc38cb6a8a4d3aa3e06debe8c1e1e7
child 606002 22795eae2f92b0a771014c04f2bdbbe79b74c14d
push id67578
push userbmo:cam@mcc.id.au
push dateMon, 10 Jul 2017 07:09:36 +0000
reviewersHonza, jcristau
bugs1371494
milestone55.0
Bug 1371494 - Save All As HAR does not populate log.entries[x].time r=Honza a=jcristau MozReview-Commit-ID: A0kY2xVyVDq
devtools/client/netmonitor/src/reducers/requests.js
--- a/devtools/client/netmonitor/src/reducers/requests.js
+++ b/devtools/client/netmonitor/src/reducers/requests.js
@@ -163,18 +163,18 @@ function requestsReducer(state = new Req
           request[key] = value;
 
           switch (key) {
             case "url":
               // Compute the additional URL details
               request.urlDetails = getUrlDetails(value);
               break;
             case "totalTime":
-              const endedMillis = request.startedMillis + value;
-              lastEndedMillis = Math.max(lastEndedMillis, endedMillis);
+              request.endedMillis = request.startedMillis + value;
+              lastEndedMillis = Math.max(lastEndedMillis, request.endedMillis);
               break;
             case "requestPostData":
               request.requestHeadersFromUploadStream = {
                 headers: [],
                 headersSize: 0,
               };
               break;
           }