Skip to content

fix: devtools crashing on Linux in detach mode - #48926

Merged
jkleinsc merged 1 commit into
electron:38-x-yfrom
ChALkeR:chalker/fix/4
Nov 13, 2025
Merged

jkleinsc merged 1 commit into
electron:38-x-yfrom
ChALkeR:chalker/fix/4

Conversation

@ChALkeR

@ChALkeR ChALkeR commented Nov 12, 2025 •

Copy link
Copy Markdown
Contributor

Backport of #48600

See that PR for details.

Notes: Fixed an issue where calling webContents.openDevTools({ mode: 'detach' }) would cause a crash on Wayland.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Nov 12, 2025
@trop trop Bot mentioned this pull request Nov 12, 2025
3 tasks done
@trop
trop Bot requested a review from a team November 12, 2025 19:20
@trop trop Bot added 38-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Nov 12, 2025
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Nov 12, 2025
@codebytere
codebytere marked this pull request as ready for review November 13, 2025 08:55
@ChALkeR

ChALkeR commented Nov 13, 2025 •

Copy link
Copy Markdown
Contributor Author

This also exactly matches this change from https://chromium-review.googlesource.com/c/chromium/src/+/6633935, which was still using the old CreateDefaultNonClientFrameView name at the time:

std::unique_ptr<NonClientFrameView>
ViewsDelegate::CreateDefaultNonClientFrameView(Widget* widget) {
-  return nullptr;
+  return std::make_unique<DefaultFrameView>(widget);
}

@jkleinsc

Copy link
Copy Markdown
Member

Merging as CI failure unrelated to PR change.

@jkleinsc
jkleinsc merged commit b32853b into electron:38-x-y Nov 13, 2025
@release-clerk

release-clerk Bot commented Nov 13, 2025

Copy link
Copy Markdown

Release Notes Persisted

Fixed an issue where calling webContents.openDevTools({ mode: 'detach' }) would cause a crash on Wayland.

@ChALkeR

ChALkeR commented Nov 13, 2025 •

Copy link
Copy Markdown
Contributor Author

Tested
On KWin (Wayland), everything works pre- and post- this patch
On Weston, pre-patch 38-x-y hanged (but not crashed) when opening devtools, with this patch it now works.

achou11 added a commit to digidem/comapeo-desktop that referenced this pull request Nov 19, 2025
Notable changes:

- updates the minimum npm version used to `11.6.3`, which introduces
some notable fixes related to lockfile generation.
- electron upgrade fixes an issue with starting the app in dev on linux
(see electron/electron#48926)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

38-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants