[M150] [ozone/wayland]Handle window destruction during surface configure [chromium/src : refs/branch-heads/7871]

0 views
Skip to first unread message

rubber-stamper@appspot.gserviceaccount.com (Gerrit)

unread,
Jun 25, 2026, 2:05:27 PM (5 days ago) Jun 25
to chrome-che...@chops-service-accounts.iam.gserviceaccount.com, android-bu...@system.gserviceaccount.com, ozone-...@chromium.org, nickdiego+wa...@igalia.com, max+watc...@igalia.com

rubber-...@appspot.gserviceaccount.com voted

Bot-Commit+1
Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedLint
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: refs/branch-heads/7871
Gerrit-Change-Id: I8812d780c4e46b42bc1a8302c69e4f2e8256b660
Gerrit-Change-Number: 8007266
Gerrit-PatchSet: 2
Gerrit-CC: Kramer Ge <fang...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Jun 2026 18:05:12 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Jun 25, 2026, 3:25:18 PM (5 days ago) Jun 25
to chrome-che...@chops-service-accounts.iam.gserviceaccount.com, Kramer Ge, rubber-...@appspot.gserviceaccount.com, android-bu...@system.gserviceaccount.com, ozone-...@chromium.org, nickdiego+wa...@igalia.com, max+watc...@igalia.com

Chromium LUCI CQ submitted the change

Change information

Commit message:
[M150] [ozone/wayland]Handle window destruction during surface configure

Original change's description:
> [ozone/wayland]Handle window destruction during surface configure
>
> ProcessPendingConfigureState() calls RequestStateFromServer(), which
> reaches the delegate's OnStateUpdate(). The views layer may
> synchronously close the widget and destroy the platform window inside
> that callout. The existing weak-ptr guard in
> MaybeApplyLatestStateRequest() returns early in that case, but
> ProcessPendingConfigureState() then continued to access members after
> the call returned.
>
> Add a weak-ptr liveness check around RequestStateFromServer(), mirroring
> the existing pattern used elsewhere in this file and in
> WaylandToplevelWindow::HandleToplevelConfigure().
>
> Fixed: 518006275
> Change-Id: I8812d780c4e46b42bc1a8302c69e4f2e8256b660
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7981871
> Commit-Queue: Kramer Ge <fang...@chromium.org>
> Reviewed-by: Thomas Anderson <thomasa...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1651724}

(cherry picked from commit 06d1bbdddd1f176c3443ca2ddb1f1d21dfe9a094)
Bug: 527756452,518006275
Change-Id: I8812d780c4e46b42bc1a8302c69e4f2e8256b660
Cr-Commit-Position: refs/branch-heads/7871@{#2169}
Cr-Branched-From: f542126b8c1b3e80104b26bb05ec830bd1206f29-refs/heads/main@{#1639810}
Files:
  • M ui/ozone/platform/wayland/host/wayland_window.cc
  • M ui/ozone/platform/wayland/host/wayland_window_unittest.cc
Change size: S
Delta: 2 files changed, 22 insertions(+), 0 deletions(-)
Branch: refs/branch-heads/7871
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: refs/branch-heads/7871
Gerrit-Change-Id: I8812d780c4e46b42bc1a8302c69e4f2e8256b660
Gerrit-Change-Number: 8007266
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages