Skip to content

Commit

Permalink
RPP: prevent ignore list right click causing Timeline context menu
Browse files Browse the repository at this point in the history
Fixed: 390573038
Change-Id: I0d8ba9eea68449aa16f98a2368f59b60dbb816f0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6182306
Auto-Submit: Jack Franklin <[email protected]>
Reviewed-by: Nancy Li <[email protected]>
Commit-Queue: Nancy Li <[email protected]>
Commit-Queue: Jack Franklin <[email protected]>
  • Loading branch information
jackfranklin authored and Devtools-frontend LUCI CQ committed Jan 17, 2025
1 parent d04815b commit d023fd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions front_end/panels/timeline/components/IgnoreListSetting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ export class IgnoreListSetting extends HTMLElement {
connectedCallback(): void {
this.#shadow.adoptedStyleSheets = [ignoreListSettingStyles];
this.#scheduleRender();

// Prevent the event making its way to the TimelinePanel element which will
// cause the "Load Profile" context menu to appear.
this.addEventListener('contextmenu', e => {
e.stopPropagation();
});
}

#scheduleRender(): void {
Expand Down

0 comments on commit d023fd4

Please sign in to comment.