summaryrefslogtreecommitdiffstats
path: root/devtools/client/netmonitor/requests-menu-view.js
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-03-03 19:42:25 +0100
committerGitHub <noreply@github.com>2018-03-03 19:42:25 +0100
commitd252c5b2320859c58900b68a7f5ac82199aa1e83 (patch)
treebee56152ced9b7485267debb8d50fca952d9c447 /devtools/client/netmonitor/requests-menu-view.js
parentc3039dadd95f5487e84311a9719604fa901aacd7 (diff)
parent8114b67b64e17482e46c2eaa77dd6a6156130dba (diff)
downloadUXP-d252c5b2320859c58900b68a7f5ac82199aa1e83.tar
UXP-d252c5b2320859c58900b68a7f5ac82199aa1e83.tar.gz
UXP-d252c5b2320859c58900b68a7f5ac82199aa1e83.tar.lz
UXP-d252c5b2320859c58900b68a7f5ac82199aa1e83.tar.xz
UXP-d252c5b2320859c58900b68a7f5ac82199aa1e83.zip
Merge pull request #36 from janekptacijarabaci/devtools_import-from-moebius_2
Port across devtools enhancements - 2
Diffstat (limited to 'devtools/client/netmonitor/requests-menu-view.js')
-rw-r--r--devtools/client/netmonitor/requests-menu-view.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/devtools/client/netmonitor/requests-menu-view.js b/devtools/client/netmonitor/requests-menu-view.js
index 4ee307145..c491fcb0e 100644
--- a/devtools/client/netmonitor/requests-menu-view.js
+++ b/devtools/client/netmonitor/requests-menu-view.js
@@ -275,6 +275,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
this._addQueue = [];
this._updateQueue = [];
this._firstRequestStartedMillis = -1;
+ this._firstRequestStartedMillisInRequests = false;
this._lastRequestEndedMillis = -1;
},
@@ -650,6 +651,9 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
// Append a network request item to this container.
let requestItem = this.push([menuView, id], {
attachment: {
+ firstRequestStartedMillis: this._firstRequestStartedMillisInRequests
+ ? null
+ : this._firstRequestStartedMillis,
startedDeltaMillis: unixTime - this._firstRequestStartedMillis,
startedMillis: unixTime,
method: method,
@@ -661,6 +665,8 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
}
});
+ this._firstRequestStartedMillisInRequests = true;
+
if (id == this._preferredItemId) {
this.selectedItem = requestItem;
}
@@ -1563,6 +1569,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
_ctx: null,
_cachedWaterfallWidth: 0,
_firstRequestStartedMillis: -1,
+ _firstRequestStartedMillisInRequests: false,
_lastRequestEndedMillis: -1,
_updateQueue: [],
_addQueue: [],