Change information
Commit message:
[M151] [Ozone/Wayland]Add window manager GetAllWindowsAsWeakPtr()
Original change's description:
> [Ozone/Wayland]Add window manager GetAllWindowsAsWeakPtr()
>
> A class of uaf are caused by direct/indirect delegate OnStatusUpdate()
> calls. Notably iterating on GetAllWindows() while the delegate may
> destroy the window and its descendant windows.
>
> Add GetAllWindowsAsWeakPtr() for callers that need to check for
> potential window destruction.
>
> Bug: 532925350
> Change-Id: I06109f25e6a1d9588fb55e930bc5ba81e82f6267
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8072281
> Reviewed-by: Thomas Anderson <thomasa...@chromium.org>
> Commit-Queue: Kramer Ge <fang...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1661337}
(cherry picked from commit c9c9c645ab28e5a002c926a456f10a36ac36029c)
Bug: 534618399,532925350
Change-Id: I06109f25e6a1d9588fb55e930bc5ba81e82f6267
Cr-Commit-Position: refs/branch-heads/7922@{#1161}
Cr-Branched-From: 059c884787b1bc15faa5afe5250f7d3a7e0ef64a-refs/heads/main@{#1654411}
Files:
- M ui/ozone/platform/wayland/host/wayland_buffer_manager_host.cc
- M ui/ozone/platform/wayland/host/wayland_output_manager.cc
- M ui/ozone/platform/wayland/host/wayland_window_manager.cc
- M ui/ozone/platform/wayland/host/wayland_window_manager.h
- M ui/ozone/platform/wayland/host/wayland_window_manager_unittest.cc
- M ui/ozone/platform/wayland/wayland_buffer_manager_unittest.cc
Change size: M
Delta: 6 files changed, 109 insertions(+), 7 deletions(-)
Branch: refs/branch-heads/7922