This is a backport PR for branch 44-x-y
trop[bot]

#54502: fix: throw instead of crashing when nativeImage cannot create a Buffer

Merged
Created: Sep 28, 2026, 3:03:23 AM
Merged: Sep 28, 2026, 7:02:17 AM
1 comments
Target: 44-x-y

Backport of #54488

See that PR for details.

Notes: Fixed a renderer crash calling image.toPNG() from a sandboxed preload script.

Backport Information

Original PR Author
codebytere
Original PR Status
Merged
Original PR Merged At
Sep 28, 2026, 3:02:40 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