commit | 24ab3332c276b6208f2cbb96fbb69a3dbbd115b3 | [log] [tgz] |
---|---|---|
author | Lily Chen <chlily@chromium.org> | Fri Feb 22 21:50:06 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 22 21:50:06 2019 |
tree | dbbe44db69f814dd896b10f23a6c2065ac735ac3 | |
parent | 7ccae0e3d7cae0d642824a5875a3a95141c25ecb [diff] |
Network Error Logging: Generate error reports on cancellation A network error should be reported if the resource fetch is aborted before it is complete: https://w3c.github.io/network-error-logging/#transmission-of-request-and-response-errors This CL adds NEL error generation (with report type ERR_ABORTED) for any HttpNetworkTransactions destructed without previously generating a success or error report. This guarantees that every HttpNetworkTransaction results in a NEL report. Successes are reported after receiving valid headers (if the response code is 4xx or 5xx, or if the body will not be read, or on a redirect), or after completely reading the body. Any other outcome is reported as an error. Bug: 934000 Change-Id: I8f71309c9cea0295546b23861fba6b131f72a3d7 Reviewed-on: https://chromium-review.googlesource.com/c/1480195 Commit-Queue: Lily Chen <chlily@chromium.org> Reviewed-by: Matt Menke <mmenke@chromium.org> Cr-Commit-Position: refs/heads/master@{#634834}
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 .