commit | 1c419f46a03fe22cb5ee219e6b5cbaef4776af3d | [log] [tgz] |
---|---|---|
author | Christian Xu <christianxu@google.com> | Fri Feb 07 09:35:50 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 07 09:35:50 2025 |
tree | 9ef2561217c6bc6483e350db5c375652b6a94c3d | |
parent | c933eb86ae6a7af2f2f26d79de893632ac6d5614 [diff] |
[iOS][LO] Fix crash when opening a new tab from webState The lens overlay webState doesn't have a SnapshotTabHelper and doesn't live in the browser's web state list, which causes a crash when using `CreateNewWebState` from `_browserWebStateDelegate`. This CL implements CreateNewWebState in LensResultPageMediator with a similar implementation as _browserWebStateDelegate. https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/web/model/web_state_delegate_browser_agent.mm;l=223-238;drc=7b241c892379a01e6acbb0fbead20cef005e690d Fixed: 374089237 Change-Id: Ie2d4242730c081ae30e7d719ee78f09c6353f959 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6238239 Reviewed-by: Radu Nitescu <radunitescu@google.com> Auto-Submit: Christian Xu <christianxu@chromium.org> Commit-Queue: Christian Xu <christianxu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1417208}
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.