Don't emulate focus when main frame is remote If the page has no local main frame, there is no need to update focus (except for the `is_emulating_focus_` state), as the focus emulation will trigger when the page navigated to a local main frame (through `FocusController::UpdateFocusOnNavigationCommit()`). Trying to update focus when the main frame is remote might cause crashes if the RemoteFrameHost is not bound (e.g. for the placeholder RemoteFrame created on local <> local RenderFrame swap). This CL avoids that by skipping focus update when the main frame is remote. Bug: 40615943 Change-Id: I8e9948941282e71dfb179cc3ba07d3b73816f3bb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6964374 Reviewed-by: Mason Freed <masonf@chromium.org> Commit-Queue: Rakina Zata Amni <rakina@chromium.org> Cr-Commit-Position: refs/heads/main@{#1517653}
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.