summaryrefslogtreecommitdiffstats
path: root/devtools/client/netmonitor/requests-menu-view.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-05 20:30:12 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-05 20:30:12 +0100
commit2f4fa17a5c8eaf44a80c58c524dd27c4229a7eb8 (patch)
tree2076bb87c352f44ee7a4acac08053a91050c4f12 /devtools/client/netmonitor/requests-menu-view.js
parentde97f5dd8e9dda4f86296cf829a82cd1d5f59467 (diff)
downloadUXP-2f4fa17a5c8eaf44a80c58c524dd27c4229a7eb8.tar
UXP-2f4fa17a5c8eaf44a80c58c524dd27c4229a7eb8.tar.gz
UXP-2f4fa17a5c8eaf44a80c58c524dd27c4229a7eb8.tar.lz
UXP-2f4fa17a5c8eaf44a80c58c524dd27c4229a7eb8.tar.xz
UXP-2f4fa17a5c8eaf44a80c58c524dd27c4229a7eb8.zip
DOMContentLoaded and load does not work properly if "devtools.webconsole.persistlog == true" - is getting higher
Issue #52
Diffstat (limited to 'devtools/client/netmonitor/requests-menu-view.js')
-rw-r--r--devtools/client/netmonitor/requests-menu-view.js20
1 files changed, 13 insertions, 7 deletions
diff --git a/devtools/client/netmonitor/requests-menu-view.js b/devtools/client/netmonitor/requests-menu-view.js
index c491fcb0e..0c854d264 100644
--- a/devtools/client/netmonitor/requests-menu-view.js
+++ b/devtools/client/netmonitor/requests-menu-view.js
@@ -275,8 +275,15 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
this._addQueue = [];
this._updateQueue = [];
this._firstRequestStartedMillis = -1;
- this._firstRequestStartedMillisInRequests = false;
this._lastRequestEndedMillis = -1;
+ this.resetNotPersistent();
+ },
+
+ /**
+ * Reset informations that "devtools.webconsole.persistlog == true".
+ */
+ resetNotPersistent: function () {
+ this._firstRequestStartedMillisNotPersistent = -1;
},
/**
@@ -651,9 +658,7 @@ 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,
+ firstRequestStartedMillisNotPersistent: this._firstRequestStartedMillisNotPersistent,
startedDeltaMillis: unixTime - this._firstRequestStartedMillis,
startedMillis: unixTime,
method: method,
@@ -665,8 +670,6 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
}
});
- this._firstRequestStartedMillisInRequests = true;
-
if (id == this._preferredItemId) {
this.selectedItem = requestItem;
}
@@ -1528,6 +1531,9 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
if (this._firstRequestStartedMillis == -1) {
this._firstRequestStartedMillis = unixTime;
}
+ if (this._firstRequestStartedMillisNotPersistent == -1) {
+ this._firstRequestStartedMillisNotPersistent = unixTime;
+ }
},
/**
@@ -1569,7 +1575,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
_ctx: null,
_cachedWaterfallWidth: 0,
_firstRequestStartedMillis: -1,
- _firstRequestStartedMillisInRequests: false,
+ _firstRequestStartedMillisNotPersistent: -1,
_lastRequestEndedMillis: -1,
_updateQueue: [],
_addQueue: [],