DescriptionClean up response handling in ResourceLoader/ResourceFetcher
This moves all of ResourceLoader's non-trivial response handling logic to ResourceFetcher, and changes the ordering of some steps to better match other callbacks.
Old order:
- Access control checks in ResourceLoader::didReceiveResponse()
- Resource::responseReceived()
- Access control checks in ResourceFetcher::didReceiveResponse()
- FetchContext::dispatchDidReceiveResponse()
New order:
- Access control checks in ResourceLoader::didReceiveResponse() (now in ResourceFetcher)
- Access control checks in ResourceFetcher::didReceiveResponse()
- FetchContext::dispatchDidReceiveResponse()
- Resource::responseReceived()
BUG=
Committed: https://crrev.com/17f873489bd87f24bff5f0b93aeeedb19754694f
Cr-Commit-Position: refs/heads/master@{#408808}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : Move more of didReceiveResponse #Patch Set 6 : Tweak decl ordering #Patch Set 7 : Lump service worker checks together, instead of CORS checks #Patch Set 8 : Rebase #
Total comments: 17
Patch Set 9 : Address hiroshige's comments #
Total comments: 2
Patch Set 10 : Revert changes to service worker failure message #
Total comments: 1
Patch Set 11 : Back to ResourceError:cancelledDueToAccessCheckError #Messages
Total messages: 40 (23 generated)
|