commit | d370a5592bb10a94282c916f26265822d6b498f6 | [log] [tgz] |
---|---|---|
author | Dmitry Gozman <dgozman@chromium.org> | Fri Jul 27 21:03:07 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jul 27 21:03:07 2018 |
tree | 74a7434e857d21b33920484b9caa7813b662d7d8 | |
parent | 7d7139aca3288d519b3c81fe69e0ffe268fc3570 [diff] |
Stop relying on WillSendRequest and DidReceiveResponse callbacks for main resource WillSendRequest for main resource happens during BeginNavigation, so we can just skip it during commit time. The logic of saving metrics from DidReceiveResponse has been copied to CommitNavigation. We could get rid of DidReceiveResponse entirely if we were always going through CommitNavigation path, but we sometimes don't (see kWebNavigationPolicyCurrentTab returned from RFI::DecidePolicyForNavigation). Bug: 855189 Change-Id: Ib78bda6e22e4a301adf7c66215568ca6f02fa01d Reviewed-on: https://chromium-review.googlesource.com/1145900 Commit-Queue: Dmitry Gozman <dgozman@chromium.org> Reviewed-by: Camille Lamy <clamy@chromium.org> Cr-Commit-Position: refs/heads/master@{#578783}
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 .