| commit | ddabd602684ae2aba82b6dcade63fb0307c89cbb | [log] [tgz] |
|---|---|---|
| author | dljames <dljames@chromium.org> | Tue Nov 12 18:24:32 2024 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 12 18:24:32 2024 |
| tree | 71be4b76953877a739792b255beda7c58b10ef68 | |
| parent | 9bd64a5d029c759f9525552a14666f7556d2f566 [diff] |
[TabGroupSync] Add CHECKs in LocalTabGroupListener before using pointers CHECKs the following: - The optional SavedTabGroup has a value before using it - The SavedTabGroup is open in a tab strip (it has a local group id) - The SavedTabGroup contains the tab we want to remove Instead of blind accessing pointers / optional values, we first CHECK to see if we even have a value for an object before use. This issue was found when debugging the attached bug and noticing we do not CHECK before a crash when hiding a group. This means that the crash reporting might give us garbage values in the call stack which is not good. Also we defined a variable `tab_guid` that was never used. It has been removed 😅 Change-Id: I89e15328343ebbf8f62835b56f2c6f2a0122ffde Bug: 372912716 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6013521 Reviewed-by: Mickey Burks <mickeyburks@chromium.org> Commit-Queue: Darryl James <dljames@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1381878}
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.