This is a backport PR for branch 42-x-y
VerteDinde

#52994: fix: keep remote api::WebContents alive while their content::WebContents lives

Merged
Created: Aug 18, 2026, 5:40:46 PM
Merged: Aug 19, 2026, 2:19:21 AM
1 comments
Target: 42-x-y

Backport of #52847

See that PR for details.

Manual backport notes: spec conflict was positional only (the neighbouring right-docked DevTools test is main-only); only this change's regression test is added. C++ hunk identical to main.

Notes: Fixed a rare crash in the main process when DevTools were opened and a garbage collection ran before the DevTools frontend finished loading.

Backport Information

Original PR Author
MarshallOfSound
Original PR Status
Merged
Original PR Merged At
Aug 17, 2026, 6:43:20 AM
Original PR Link
GitHubView on GitHub

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron