commit | 800ab60b29e21aa4ef8108612199ad15254ad637 | [log] [tgz] |
---|---|---|
author | Matt Falkenhagen <falken@chromium.org> | Thu Jul 11 09:40:21 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jul 11 09:40:21 2019 |
tree | d05987b9af25e36c29c219edb615d9d58a94754a | |
parent | 038517ca6f131974c2ab4740b73017fc56e24bcf [diff] |
Fix CaptivePortalBrowserTest's WaitForJobs() function. It wasn't actually waiting for |num_jobs| when NavigationLoaderOnUI is enabled. When that feature is enabled, the function is called directly from the UI thread, and if |ongoing_mock_requests_| doesn't have size |num_jobs| it would return without waiting. This was discovered by https://chromium-review.googlesource.com/c/chromium/src/+/1688592 which will introduce a thread hop in order to perform service worker interception before doing an outgoing network request, so WaitForJobs() will be called before a request is added to ongoing_mock_requests_. Bug: 824858, 978556 Change-Id: I7264f1a4f04e517694417affcd5a8d20d0f4b9b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1689979 Commit-Queue: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#676347}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .