RESOLVED FIXED 195633
Web Inspector: Elements: provide node context menu items for event listeners sorted by node
https://bugs.webkit.org/show_bug.cgi?id=195633
Summary Web Inspector: Elements: provide node context menu items for event listeners ...
Devin Rousso
Reported 2019-03-12 11:08:59 PDT
<https://webkit.org/b/195368> provides highlighting, but we should also be able to context menu and "Reveal in DOM tree".
Attachments
Patch (4.16 KB, patch)
2019-03-12 11:16 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-03-12 11:16:58 PDT
Matt Baker
Comment 2 2019-03-12 12:08:51 PDT
Comment on attachment 364413 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364413&action=review r=me, but I think the bug title should be changed. Context menu items aren't added anywhere; this looks like refactoring. > Source/WebInspectorUI/ChangeLog:12 > + existing DOM without modifying it. This is confusing: "...so it can be used on existing DOM without modifying it." Aren't we just separating this out so it can be reused?
Matt Baker
Comment 3 2019-03-12 12:10:04 PDT
(In reply to Matt Baker from comment #2) > Comment on attachment 364413 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=364413&action=review > > r=me, but I think the bug title should be changed. Context menu items aren't > added anywhere; this looks like refactoring. > > > Source/WebInspectorUI/ChangeLog:12 > > + existing DOM without modifying it. > > This is confusing: "...so it can be used on existing DOM without modifying > it." Aren't we just separating this out so it can be reused? Sorry I misread part of the diff. Looks good! I'd clean up the wording in the change log though.
Devin Rousso
Comment 4 2019-03-12 12:39:20 PDT
Comment on attachment 364413 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364413&action=review >>> Source/WebInspectorUI/ChangeLog:12 >>> + existing DOM without modifying it. >> >> This is confusing: "...so it can be used on existing DOM without modifying it." Aren't we just separating this out so it can be reused? > > Sorry I misread part of the diff. Looks good! I'd clean up the wording in the change log though. Yes and no. Part of it is separating out the code, but the primary reason we have to separate out the code is because the existing function modifies the `element` passed in (as an example, it sets a `role` attribute). This new function allows us to have the same interaction logic without any other changes to the `element`.
Matt Baker
Comment 5 2019-03-12 13:04:28 PDT
Comment on attachment 364413 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364413&action=review >>>> Source/WebInspectorUI/ChangeLog:12 >>>> + existing DOM without modifying it. >>> >>> This is confusing: "...so it can be used on existing DOM without modifying it." Aren't we just separating this out so it can be reused? >> >> Sorry I misread part of the diff. Looks good! I'd clean up the wording in the change log though. > > Yes and no. Part of it is separating out the code, but the primary reason we have to separate out the code is because the existing function modifies the `element` passed in (as an example, it sets a `role` attribute). This new function allows us to have the same interaction logic without any other changes to the `element`. Ah okay! It wasn't obvious that this was because `WI.linkifyNodeReferenceElement` does more to the element than hooking up event listeners.
WebKit Commit Bot
Comment 6 2019-03-12 13:05:58 PDT
Comment on attachment 364413 [details] Patch Clearing flags on attachment: 364413 Committed r242820: <https://trac.webkit.org/changeset/242820>
WebKit Commit Bot
Comment 7 2019-03-12 13:05:59 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2019-03-12 13:06:22 PDT
Note You need to log in before you can comment on or make changes to this bug.