commit | a03a9db8957ddd5c52fd80464e3c1b39b1b70999 | [log] [tgz] |
---|---|---|
author | David Bokan <bokan@chromium.org> | Tue May 09 12:39:27 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 09 12:39:27 2023 |
tree | 8a545648b0ea2f59f14ddfe7304ad6ead2cb5f1f | |
parent | 6fed3bb1cf3540eba7e285a59574d30ac5614ead [diff] |
Fix flaky PasswordProtection test This de-flakes the DeferActivatePrerenderStartedAfterRequest test. This test would occasionally fail as the PasswordProtectionRequest issues a real request using the SimpleURLLoader. These browser tests expect that a request won't receive a response (in time?) and mock responses by manually calling FinishRequest. However, in the flaky runs the URLLoader receives a real response before the test's mock response and this causes the CommitDeferringCondition to be destroyed unexpectedly. This CL adds a bit to PasswordProtectionRequest that allows skipping the URLLoader request from tests. Bug: 1433599 Change-Id: Id57f308f114043e321f54a57f9854145dbd56ec5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4509446 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by: Xinghui Lu <xinghuilu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1141309}
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.