Change information
Commit message:
[M148] [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: 527756736,518006275
Change-Id: I8812d780c4e46b42bc1a8302c69e4f2e8256b660
Cr-Commit-Position: refs/branch-heads/7778@{#4430}
Cr-Branched-From: 77f495ee216d4c3cc784d33658bad4778c0680ee-refs/heads/main@{#1610480}
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/7778
Submit Requirements:
Code-Review: +1 by Thomas Anderson, +1 by Kramer Ge