Summary: Remove parameters from TreeOutline SelectionDidChange event. Current the event data includes {selectedElement, deselectedElement}. In a world where TreeOutline can have multiple selected items, these properties don't make sense. Let's remove them and let the handler decide what to do. `selectedElement` is redundant; the handler can just ask for `event.target.selectedTreeElement`. `deselectedElement` is only used in one place, and can be avoided easily.
Created attachment 355116 [details] Patch
Created attachment 355131 [details] Patch
<rdar://problem/46140601>
Comment on attachment 355131 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=355131&action=review r=me, nice cleanup :) Rather than use `event.target.selectedTreeElement`, it seems like most of these cases could refer to the actual member `WI.TreeOutline` object (e.g. CallFrameTreeController.js could use `this._treeOutline.selectedTreeElement` instead, or most of the `WI.NavigationSidebarPanel` subclasses could use `this.contentTreeOutline` instead) > Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:845 > + let selectedTreeElement = event.target.selectedTreeElement; NIT: I'd move this to be right above the `if` that checks for it's existence (down one line)
Created attachment 355447 [details] Patch for landing
Comment on attachment 355447 [details] Patch for landing Attachment 355447 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/10105201 New failing tests: media/no-fullscreen-when-hidden.html
Created attachment 355460 [details] Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Created attachment 355602 [details] Patch for landing
Comment on attachment 355602 [details] Patch for landing Clearing flags on attachment: 355602 Committed r238483: <https://trac.webkit.org/changeset/238483>
All reviewed patches have been landed. Closing bug.