commit | 40316d774f882abb7308931a7fb4a41790efb6ce | [log] [tgz] |
---|---|---|
author | phillis <phillis@chromium.org> | Fri Jun 03 19:48:44 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 03 19:48:44 2022 |
tree | db20b71b33048c63f13fa465710d62055ff1420f | |
parent | 0a5cad4bc6c65cd030093720fb7599ac4cb00ef0 [diff] |
DPWA: fix UAF on launch --uninstall-app-id `WebAppUninstallDialogDelegateView` is a `DialogDelegate` and is owned by its widget. It was triggering a callback on `OnDialogCanceled`. The callback was passed from `WebAppUiManagerImpl` to release a `ScopedKeepAlive`, which could trigger a browser shutdown and further attempts to close the dialog widget, which races with the widget & delegate's destruction managed by views framework. The fix removes the redundant and too-early callback call on `OnDialogCanceled` and only call it on destruction. Bug: 1330289 Change-Id: I660c0af08a460ce6cedace8d0871dcb925ad9d76 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3688264 Commit-Queue: Phillis Tang <phillis@chromium.org> Reviewed-by: Chase Phillips <cmp@chromium.org> Cr-Commit-Position: refs/heads/main@{#1010715}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.