commit | e4e80ade6a82eed43b272e7a16904c4033c60622 | [log] [tgz] |
---|---|---|
author | Chuong Ho <hdchuong@google.com> | Fri Oct 04 06:38:24 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 04 06:38:24 2024 |
tree | ce44061763d384271550cf56ce0605e3222fb606 | |
parent | a174f5075bce99fdfb468b967716e0bd8b17c289 [diff] |
lobster: fix crash when re-creating the lobster session When re-creating a new lobster session, both the old and new lobster session will trigger `LobsterService::SetActiveSession` via LobsterClient. Unfortunately, the old session is destroyed after the creation of the new session. Therefore, the service holds a nullptr value of the session instead of the new session. This causes crash when the lobster session is created for the second time. This CL does the following to fix this issue: * Upon creating a new session, the session no longer asks the client to `SetActiveSession` within the session's constructor. It also does not ask the client to clear the active session when the session is destroyed * We directly notify the lobster service about updating the active session via lobster client at the time when the new session is created. Bug: b:371484317 Change-Id: Icd695caee50d43c54828c7418358176cc7b9e0a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5904584 Commit-Queue: Chuong Ho <hdchuong@chromium.org> Reviewed-by: Curtis McMullan <curtismcmullan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1364067}
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.