commit | 67dcb55bd88fb1ea0827379033554f25e0243422 | [log] [tgz] |
---|---|---|
author | dljames <dljames@chromium.org> | Thu Sep 19 19:51:44 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 19 19:51:44 2024 |
tree | 34e1baac33e51bf27b355be72bda01094e866e35 | |
parent | f36da203cf042f237f62fcf47b241aaf6ed8471b [diff] |
[CompactMode] Fix crash for incognito profiles The incognito browser is destroyed before we have a chance to properly unsubscribe from the PrefChangeRegistrar. This results in a UAF. We mitigate this crash by first checking in BrowserViewLayout if the profile is associated with incognito before subscribing. The same issue is not present for other OTR profiles such as guest mode while testing locally. Change-Id: I73c801e409197d9d9d6f378a515df0ab2b6e2ae6 Bug: 365015374, 368369457 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5875142 Commit-Queue: Darryl James <dljames@chromium.org> Reviewed-by: David Pennington <dpenning@chromium.org> Reviewed-by: Caroline Rising <corising@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1357803}
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.