commit | 5b958c5193f0f8c7d0f1d68fad462ff88f2ec387 | [log] [tgz] |
---|---|---|
author | Olivier ROBIN <olivierrobin@google.com> | Wed Apr 09 14:46:19 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 09 14:46:19 2025 |
tree | bb7e445e58296283846df8ec10234c774de90657 | |
parent | 875c75fcb3be618b4c328491c5f46f572bc5c603 [diff] |
Fix translation for Prerendered tab In prerendered tabs, the page is already loaded when the TranslateController is created. In that case, the main_web_frame_ must be set on creation. As the main_web_frame was supposed to always be the current one, fetch it when it is needed instead of observing WebFramesManager. As WebState was only observed to remove WebState/WebFrame observers, keep a weak reference to WebState and remove the observer. Fixed: 408272917 Change-Id: I9105aa4f967f4857a1fd90c21f8112278b4d56f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6437712 Reviewed-by: Sylvain Defresne <sdefresne@chromium.org> Commit-Queue: Olivier Robin <olivierrobin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1444717}
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.