DevTools: Improve event listener context menus
This CL adds context menu items to each listener to reveal its source code, remove it, or toggle whether it is passive or blocking (when applicable). This improves the accessibility of the event listeners view in the Elements panel as well as the global listeners view in the Sources panel, as previously the passive toggle and delete buttons were available only on hover. Previously reviewed at https://chromium-review.googlesource.com/c/chromium/src/+/1665298, split into this CL as it impacts multiple parts of the UI. Screenshot: https://gyazo.com/dc1b54b5e0ae1f9b67f89b0400a168a8 Bug: 963183 Change-Id: I497e96ee3eb5d58358f904dd7e9ac92b15840baf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1716462 Commit-Queue: Jack Lynch <jalyn@microsoft.com> Reviewed-by:Lorne Mitchell <lomitch@microsoft.com> Cr-Commit-Position: refs/heads/master@{#704730}
Showing
Please register or sign in to comment