commit | b89615b769fad1bee51895727794a503270269d9 | [log] [tgz] |
---|---|---|
author | Kaan Alsan <alsan@chromium.org> | Mon Jan 27 14:28:24 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 27 14:28:24 2025 |
tree | 4f4dd2c19c96cc9df2fc0e0504e2fbea1b13cca0 | |
parent | 19acd4c22682c869301d31c12f545c85088d1ec6 [diff] |
Handle menu updates while the empty-menu placeholder is selected Removing an `EmptyMenuMenuItem` while it's selected would cause a crash caused by the menu controller de-referencing a dangling pointer. This CL fixes this by transferring selection to the parent menu before deleting the selected item. Bug: 392575035 Fixed: 392575035 Change-Id: Ibc3425c72dc4f04c97c39b818343b48ed65ab8fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6200575 Commit-Queue: Kaan Alsan <alsan@chromium.org> Reviewed-by: Dana Fried <dfried@chromium.org> Cr-Commit-Position: refs/heads/main@{#1411601}
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.