commit | 726375b6a0c5583f4d6c37a0d5edaf2421cb72b9 | [log] [tgz] |
---|---|---|
author | Yao Xiao <yaoxia@chromium.org> | Sat Jan 26 01:05:24 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Jan 26 01:05:24 2019 |
tree | bd2f5487fe918374f3dbe14e3d5ffa8abecd4d2c | |
parent | 987d27a582339adcc52ddb71ec95e303ea10a7e5 [diff] |
Add tentative WPT to verify download in sandbox General testing idea: For a network request, we store a token in stash. And after a fixed period of time sufficient for the download to finish, if there are any, we validate the token in the stash to see if the network request was issued and finished successfully. In the case of <a download> where the decision of download can be made before resource fetching, the server sets the token immediately. In the case of navigation to a download, the server will stream a response over 1 seconds and set the token at the end only when the socket has been connected. So it is able to detect any download cancellation while fetching the resource. Bug: 539938 Change-Id: I734c8cc18d1f761f16646c6b859a6b731ab40ff5 Reviewed-on: https://chromium-review.googlesource.com/c/1422667 Commit-Queue: Yao Xiao <yaoxia@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#626289}
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 .