Skip to content

chore: cherry-pick ef5f5daefb71 from chromium - #55571

Merged
ckerr merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-chore-cherry-pick-ef5f5daefb71-from-chromium-1793715237152
Nov 3, 2026
Merged

ckerr merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-chore-cherry-pick-ef5f5daefb71-from-chromium-1793715237152

Conversation

@trop

@trop trop Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Backport of #55568

See that PR for details.

Notes: Fixed a crash when using hidden window as the parent in Wayland.

Co-authored-by: LuoRain <luotianyi@luotianyi.me>
@trop
trop Bot requested a review from a team as a code owner November 3, 2026 14:15
@trop trop Bot mentioned this pull request Nov 3, 2026
4 tasks done
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Nov 3, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed this backport and didn't find any bugs. patches/ has code owners, though, so one of them should still take a look.

What was reviewed (from a standalone clone, so I couldn't open the Chromium sources):

  • .patches gets one new entry at the end, and the patch's commit message explains the crash and links #55141. It also says the upstream unit tests were dropped.
  • The hunks match that description. ExportSurfaceToForeign now takes a WaylandToplevelWindow* and runs the callback with an empty string when the window isn't visible. OnHandleForward passes an empty handle through instead of returning just "wayland:".
  • AsWaylandToplevelWindow() isn't null-checked, but the existing DCHECK_EQ(type, kWindow) sits just before that call, the same as upstream.
  • I couldn't check whether 45-x-y's Chromium has other callers of ExportSurfaceToForeign that still pass a WaylandWindow*. CI's build will catch that.
Extended reasoning...

This change adds one upstream Chromium cherry-pick and touches only ozone/wayland code (xdg_foreign_wrapper and linux_ui_delegate_wayland). It doesn't touch any security-sensitive surface such as auth, IPC or permissions. The patch matches the upstream CL apart from the documented removal of the unit tests. I deferred instead of approving because a CODEOWNERS group owns /patches/, and from a standalone clone I can't confirm that the changed signature compiles against the Chromium version pinned on 45-x-y.

@ckerr
ckerr enabled auto-merge (squash) November 3, 2026 15:23
@ckerr
ckerr merged commit 52225da into 45-x-y Nov 3, 2026
92 checks passed
@ckerr
ckerr deleted the trop/45-x-y-bp-chore-cherry-pick-ef5f5daefb71-from-chromium-1793715237152 branch November 3, 2026 15:32
@release-clerk

release-clerk Bot commented Nov 3, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed a crash when using hidden window as the parent in Wayland.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant