electron/shell
trop[bot] 6a03d14055
feat: Focus DevTools when breakpoint is triggered (#48703)
`bringToFront` DevTools message is sent when breakpoint is triggered
or inspect is called and Chromium upon this message activates DevTools
via `DevToolsUIBindings::Delegate::ActivateWindow`:
```
void DevToolsWindow::ActivateWindow() {
  if (life_stage_ != kLoadCompleted)
    return;
\#if BUILDFLAG(IS_ANDROID)
  NOTIMPLEMENTED();
\#else
  if (is_docked_ && GetInspectedBrowserWindow())
    main_web_contents_->Focus();
  else if (!is_docked_ && browser_ && !browser_->window()->IsActive())
    browser_->window()->Activate();
\#endif
}
```
which implements: `DevToolsUIBindings::Delegate::ActivateWindow`.

Electron also implements this interface in:
`electron::InspectableWebContents`. However it was only setting
a zoom level, therefore this commit extends it with activation
of the DevTools.

Only supported for DevTools manged by `electron::InspectableWebContents`.

Closes: #37388

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Michał Pichliński <michal.pichlinski@here.io>
2025-11-10 16:40:13 -05:00
..
app fix: ensure snapshot is valid (#48103) 2025-08-18 14:37:38 -07:00
browser feat: Focus DevTools when breakpoint is triggered (#48703) 2025-11-10 16:40:13 -05:00
common feat: dynamic ESM import in preload without context isolation (#48487) 2025-10-21 15:13:05 -04:00
renderer fix: draw smoothing round rect corner (#48783) 2025-11-05 18:25:42 -05:00
services/node fix: net.isOnline always true in utility processes (#48152) 2025-08-22 11:02:55 -04:00
utility fix: broken OOP window.print() on macOS/Linux (#45214) 2025-01-20 10:23:44 +01:00