commit | d378f7615e3234e64440dca96813dfdc7f4b8d8e | [log] [tgz] |
---|---|---|
author | Dmitry Gozman <dgozman@chromium.org> | Mon Dec 24 04:01:22 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Dec 24 04:01:22 2018 |
tree | 93370384b450c36d2c66771c1d5a062523044039 | |
parent | e18193dbbb3c6968d6c66019098b299ca69dc67c [diff] |
Prepare SimRequest to browser-side navigation Currently, we simulate navigation requests using SimRequest not quite similar to the real navigation requests. We allow asynchronous Start() call which is not the case for browser-side navigation requests which come with synchronous response. We plan to commit navigation synchronously after receiving response, and tests should be ready for that. Changes in this patch: - SimRequest now starts immediately when response is received. Most SimRequests in tests are navigation requests, so they are now compatible to the browser-side navigation flow. - To emulate subresources which may start asynchronously, a new SimSubresourceRequest is introduced. This one is currently used for all existing subresources in tests, to preserve the behavior. In reality, there should rarely be a need for asynchronous response, even for subresources. Bug: 855189 Change-Id: I125fd6dbe5522947d34ae755b653783246eb4695 Reviewed-on: https://chromium-review.googlesource.com/c/1387667 Commit-Queue: Dmitry Gozman <dgozman@chromium.org> Reviewed-by: Nate Chapin <japhet@chromium.org> Cr-Commit-Position: refs/heads/master@{#618804}
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 .