Changeset 244577 in webkit
- Timestamp:
- Apr 23, 2019, 6:28:49 PM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Views/NetworkTableContentView.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r244576 r244577 1 2019-04-23 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: REGRESSION(r238168): Network: preserve log doesn't show main frame main resource changes 4 https://bugs.webkit.org/show_bug.cgi?id=197220 5 <rdar://problem/49960464> 6 7 Reviewed by Timothy Hatcher. 8 9 * UserInterface/Views/NetworkTableContentView.js: 10 (WI.NetworkTableContentView.prototype.reset): 11 (WI.NetworkTableContentView.prototype._addCollection): 12 (WI.NetworkTableContentView.prototype._resetCollection): Added. 13 (WI.NetworkTableContentView.prototype._changeCollection): 14 (WI.NetworkTableContentView.prototype._mainResourceDidChange): 15 We want to add the frame's main resource in the case that it's the main frame, but we also 16 want to clear the main collection of data (e.g. if viewing an imported HAR). 17 Drive-by: `_groupByDOMNodeNavigationItem` was renamed in a previous patch. 18 1 19 2019-04-23 Devin Rousso <drousso@apple.com> 2 20 -
trunk/Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js
r244576 r244577 307 307 { 308 308 this._runForMainCollection((collection) => { 309 collection.entries = []; 310 collection.filteredEntries = []; 311 collection.pendingInsertions = []; 312 collection.pendingUpdates = []; 313 collection.waterfallStartTime = NaN; 314 collection.waterfallEndTime = NaN; 309 this._resetCollection(collection); 315 310 }); 316 311 … … 527 522 _addCollection() 528 523 { 529 let collection = { 530 entries: [], 531 filteredEntries: [], 532 pendingInsertions: [], 533 pendingUpdates: [], 534 waterfallStartTime: NaN, 535 waterfallEndTime: NaN, 536 }; 537 524 let collection = {}; 525 this._resetCollection(collection); 538 526 this._collections.push(collection); 539 540 527 return collection; 528 } 529 530 _resetCollection(collection) 531 { 532 collection.entries = []; 533 collection.filteredEntries = []; 534 collection.pendingInsertions = []; 535 collection.pendingUpdates = []; 536 collection.waterfallStartTime = NaN; 537 collection.waterfallEndTime = NaN; 541 538 } 542 539 … … 587 584 let isMain = collection === this._mainCollection; 588 585 this._checkboxesNavigationItemGroup.hidden = !isMain; 589 this._group ByDOMNodeNavigationItem.hidden = !isMain;586 this._groupMediaRequestsByDOMNodeNavigationItem.hidden = !isMain; 590 587 this._clearNetworkItemsNavigationItem.enabled = isMain; 591 588 this._collectionsPathNavigationItem.components = [this._pathComponentsMap.get(collection)]; … … 1589 1586 _mainResourceDidChange(event) 1590 1587 { 1591 let frame = event.target;1592 if (!frame.isMainFrame() || !WI.settings.clearNetworkOnNavigate.value)1593 return;1594 1595 this.reset();1596 1597 1588 this._runForMainCollection((collection) => { 1589 let frame = event.target; 1590 if (frame.isMainFrame() && WI.settings.clearNetworkOnNavigate.value) 1591 this._resetCollection(collection); 1592 1598 1593 if (this._transitioningPageTarget) { 1599 1594 this._transitioningPageTarget = false;
Note:
See TracChangeset
for help on using the changeset viewer.