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

#54859: fix: avoid menu bar crash when GTK cannot initialize

Merged
Created: Oct 12, 2026, 1:14:09 PM
Merged: Oct 13, 2026, 1:41:33 AM
2 comments
Target: 44-x-y

Requested by Charles Kerr · Slack thread

Description of Change

Manual backport of #54777. See that PR for details.

CC @ckerr

The only conflict was in the #include block of shell/browser/ui/gtk_util.cc, where 44-x-y still includes SkUnPreMultiply.h; it was kept alongside the two new includes.

Checklist

🤖 Generated with Claude Code

https://claude.ai/code/session_015GReMcdLqJ1Grhw5C8TvVx

Release Notes

Notes: Fixed a Linux crash creating a window with a menu bar when GTK failed to load.

Backport Information

Original PR Author
ckerr
Original PR Status
Merged
Original PR Merged At
Oct 12, 2026, 9:08: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