Skip to content

Regression (39+): setDevToolsWebContents() + detached DevTools in custom BrowserWindow breaks DevTools dropdown/popup/context menus (works in 38.8.0) #49753

@gdavidkov

Description

@gdavidkov

Preflight Checklist

Electron Version

40.2.1

What operating system(s) are you using?

Windows

Operating System Version

Microsoft Windows [Version 10.0.26200.6899]

What arch are you using?

x64

Last Known Working Electron version

38.8.0

Does the issue also appear in Chromium / Google Chrome?

No

Expected Behavior

DevTools popup UI should work normally inside the custom detached DevTools window, including:

  • Toolbar dropdowns (e.g. Console filters)
  • Overflow/chevron menus (e.g. >>)
  • Right-click context menus in panels

Actual Behavior

DevTools opens and panels render, and controls show hover/pressed/active states, but menus/popups never appear when clicked. This affects multiple DevTools UI elements, suggesting a general popup/menu rendering issue rather than a single panel bug.

Testcase Gist URL

https://gist.github.com/6e3cb66842c73197073debfa83c98e27

Additional Information

When hosting Chromium DevTools in a custom BrowserWindow using webContents.setDevToolsWebContents() and opening DevTools in detached mode, the DevTools UI renders and is mostly usable, but popup menus do not open (dropdowns, overflow chevrons, context menus, etc.).

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions