RenderDocument: Fix BeforeUnload tests. The BeforeUnload* tests call a helper function that turns off the unload hang monitors in the active RFHs at the start of the test. Without it, when the beforeunload dialog appears, it will prevent the browser from quitting, which will cause the test to hang. With RenderDocument enabled, the navigation results in a frame swap, and the new RFH that's created doesn't have its hang monitor disabled, resulting in the test timing out during the post-test cleanup process. This CL fixes these tests by disabling the hang monitor again at the end of the test for all active RFHs, ensuring that any RFHs created during the test also have their unload hang monitors turned off before the cleanup stage. Change-Id: I8afa15cd7b518b2a6ad797beb5a583e7c3a79202 Bug: 40615943 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6871815 Commit-Queue: Liam Brady <lbrady@google.com> Reviewed-by: Kevin McNee <mcnee@chromium.org> Cr-Commit-Position: refs/heads/main@{#1505410}
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.