commit | d22357202de90cf3ff847223cdc90eef0f49161f | [log] [tgz] |
---|---|---|
author | Sylvain Defresne <sdefresne@chromium.org> | Mon Sep 16 13:49:36 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Sep 16 13:49:36 2024 |
tree | 59e1b35764914114ef49a5429505d85846d2cb1e | |
parent | ca48fa4901bd3b40f2110a45ae6de3fc5df71e90 [diff] |
[ios] Improve SessionRestorationServiceImpl Before this CL, if an unrealized WebState was detached from a Browser, and the session saved before it could be inserted into another Browser then the code would crash as it would be unable to find the original Browser that contained the data. Change SessionRestorationServiceImpl to keep the OrphanInfo for those detached WebStates until they are either closed, or inserted into a Browser. There was no way to exercise this crash before as the production code would always move a WebState between Browser without returning to the main loop, but it was theoretically possible. The hole is now fixed. Add unit tests that this fixes the crash during both the session save and the LoadWebStateStorage(...) method. Bug: none Change-Id: Iaa9ec3709d2e69d92e35b429224cc0614ea75688 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5860161 Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Reviewed-by: Olivier Robin <olivierrobin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1355821}
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.