Skip downloading by using a flag in ResourceResponse
When NetworkService/ServiceWorkerServicification is on, MimeSniffingThrottle is used for responses from service workers. Previously, downloading is skipped when any of throttles handle the response, so using MimeSniffingThrottle undesirably prevented downloading. This CL is to make downloading work properly when a service worker serves the response. Also, when a response is NOT served from ResourceDispatcherHost, DownloadManagerImpl needs to be created in NavigationRequest. Currently it happens only when NetworkService is on. This CL adds a condition where S13nSW is on and a service worker serves the response there. TBR=jam@chromium.org Bug: 896696 Cq-Include-Trybots: luci.chromium.try:linux_mojo Change-Id: I222d8148cf65d15492393ebcd6ed582deb14022f Reviewed-on: https://chromium-review.googlesource.com/c/1290434 Commit-Queue: Makoto Shimazu <shimazu@chromium.org> Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#601901}
Showing
Please register or sign in to comment