commit | 488f5b21cd860e34992ba94bd38c9dadcc9c1787 | [log] [tgz] |
---|---|---|
author | Duncan Mercer <mercerd@google.com> | Mon Sep 23 21:27:13 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Sep 23 21:27:13 2024 |
tree | d3d130da66872052bafb5ca1d84b045011413e9a | |
parent | 05f548dc09ff425d7f269c9ec4b1038d105188b9 [diff] |
[lensoverlay] Fix race condition in fetch page bytes InitializeOverlay() is called in multiple places by two async processes. In order to ensure InitializeOverlay is only run once, InitializeOverlay exits early if either the WebUI isn't ready or the initialization_data_ isn't ready. However, there was a race condition when fetching the page content bytes where initialization_data_ was assigned, and then the WebUI would become ready, causing InitializeOverlay to run and calling StartQueryFlow twice. To rememdy this, I have more tightly coupled the call to InitializeOverlay when assigning initialization_data_ to ensure we aren't accidentally creating initialization_data_ and calling InitializeOverlay before initialization_data_ is actually ready. Bug: 368647545 Change-Id: Ib8020aded2c9afca15e4fac7eecde19fb28a5bc0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5878485 Reviewed-by: Ali Stanfield <stanfield@google.com> Commit-Queue: Duncan Mercer <mercerd@google.com> Cr-Commit-Position: refs/heads/main@{#1358997}
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.