Bug 1320671 - Display transferred/compressed (instead of content/uncompressed) size in the network performance summary view. r? draft
authorIan Moody <moz-ian@perix.co.uk>
Tue, 29 Nov 2016 21:59:34 +0000
changeset 446057 ce1be2ce4b415a9a1d753402965d4fc600b2eeba
parent 445882 741a720c98cdb92c229376be0badbf036f653bff
child 538696 bc49de86c6a1083ba8321d2fb60848947702c464
push id37690
push usermoz-ian@perix.co.uk
push dateWed, 30 Nov 2016 21:36:26 +0000
bugs1320671
milestone53.0a1
Bug 1320671 - Display transferred/compressed (instead of content/uncompressed) size in the network performance summary view. r? MozReview-Commit-ID: JQvtkplt8eT
devtools/client/netmonitor/performance-statistics-view.js
--- a/devtools/client/netmonitor/performance-statistics-view.js
+++ b/devtools/client/netmonitor/performance-statistics-view.js
@@ -205,17 +205,17 @@ PerformanceStatisticsView.prototype = {
         type = 3;
       } else {
         // "other"
         type = 9;
       }
 
       if (emptyCache || !responseIsFresh(details)) {
         data[type].time += details.totalTime || 0;
-        data[type].size += details.contentSize || 0;
+        data[type].size += details.transferredSize || 0;
       } else {
         data[type].cached++;
       }
       data[type].count++;
     }
 
     return data.filter(e => e.count > 0);
   },