mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
moebius#93: DevTools: Network - DOMContentLoaded and load
Issue #31 Improvements: #34 https://github.com/MoonchildProductions/moebius/pull/93
This commit is contained in:
parent
558c645ef6
commit
ed8a17ae7d
12 changed files with 132 additions and 4 deletions
|
|
@ -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: [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue