commit | 4a8acd1fa22f65298c913bb1cafc2b56e1939511 | [log] [tgz] |
---|---|---|
author | Sylvain Defresne <sdefresne@chromium.org> | Wed Mar 13 14:57:29 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 13 14:57:29 2024 |
tree | 4d7a956bb6c5b4ad34af8dd2213f1fb036876037 | |
parent | c448942317c134cd355c70ec9d39ffc1f5d24ed0 [diff] |
[ios] Fix crash in SessionRestorationServiceImpl The code for handling detached WebState would crash if a realized WebState was inserted in a Browser and detached before the Browser could be saved because no metadata was present in the metadata_map. Add a check when handling detached WebState to skip items without metadata. This is okay since OrphanInfo is only used when adopting an unrealized WebState, and unrealized WebState metadata is always present in the map (it is either inserted when loaded from disk, when adopted from another Browser or when created by the helper `CreateUnrealizedWebState`). Fixed: 329219388 Change-Id: I3b912636256bedcd2ae597a423324b5341604f1d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5366069 Auto-Submit: Sylvain Defresne <sdefresne@chromium.org> Commit-Queue: Federica Germinario <fedegermi@google.com> Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Reviewed-by: Federica Germinario <fedegermi@google.com> Cr-Commit-Position: refs/heads/main@{#1272152}
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.