• Makoto Shimazu's avatar
    Skip downloading by using a flag in ResourceResponse · 0885b0f0
    Makoto Shimazu authored
    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: default avatarKinuko Yasuda <kinuko@chromium.org>
    Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#601901}
    0885b0f0
register_service_worker.html 237 Bytes