commit | 21950e8178c9398c40a6055a683adcea54f77660 | [log] [tgz] |
---|---|---|
author | Makoto Shimazu <[email protected]> | Thu Aug 02 12:37:14 2018 |
committer | Commit Bot <[email protected]> | Thu Aug 02 12:37:14 2018 |
tree | 2db3dd3040fb3fdddb2fa1b5dce0d36b68ffcdbe | |
parent | 0f0fa2e588f06f76c425651f608fe0e50c80e3ef [diff] |
Reland "Add MimeSniffingThrottle for navigation and requests from renderer" This reverts commit b0f5b21b078c6382136d80d11f477822e6395e28. The difference from the original patch is a kAborted state in MimeSniffingURLLoader. DCHECKs will capture if something wrong. Also, Abort() stops to read the body and receive messages from the source URLLoader. We can ensure that the loader is stopped to work immediately in this way. Original description: > This CL adds MimeSniffingThrottle which can intercept the response in > ThrottlingURLLoader. Typically mime sniffing happens in network::URLLoader and > MimeSniffingThrottle is skipped in this case. If a request goes to a service > worker or other interceptors, the MimeSniffngThrottle intercepts the response > when a set of the mime type and the url is eligible to sniff the mime > type. Sniffable mime types are defined in net::ShouldSniffMimeType(). When a > mime type for performance sensitive components like "text/html", > "text/javascript",or "text/css" is provided, it doesn't sniff. Bug: 858975 Cq-Include-Trybots: luci.chromium.try:linux_mojo Change-Id: I51648def32e147eb127ec6efbb59ed2353cfba56 Reviewed-on: https://chromium-review.googlesource.com/1160133 Reviewed-by: Kinuko Yasuda <[email protected]> Commit-Queue: Makoto Shimazu <[email protected]> Cr-Commit-Position: refs/heads/master@{#580143}
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 .