Changeset 282477 in webkit
- Timestamp:
- Sep 15, 2021, 3:12:01 PM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Views/TreeOutline.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r282475 r282477 1 2021-09-15 Patrick Angle <pangle@apple.com> 2 3 Web Inspector: `TreeOutline` should return early when failing to find an ancestor while populating the tree 4 https://bugs.webkit.org/show_bug.cgi?id=230287 5 6 Reviewed by Devin Rousso. 7 8 When an ancestor can not be found, we should return to prevent additional work (which will fail) from being done. 9 10 * UserInterface/Views/TreeOutline.js: 11 (WI.TreeOutline.prototype.findTreeElement): 12 1 13 2021-09-15 Patrick Angle <pangle@apple.com> 2 14 -
trunk/Source/WebInspectorUI/UserInterface/Views/TreeOutline.js
r269359 r282477 517 517 // ancestor exists in the tree. 518 518 item = this.findTreeElement(ancestors[i], isAncestor, getParent); 519 if (item) 520 item.onpopulate(); 519 if (!item) 520 return null; 521 522 item.onpopulate(); 521 523 } 522 524
Note:
See TracChangeset
for help on using the changeset viewer.