Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Issue 1975373002: Clean up response handling in ResourceLoader/ResourceFetcher (Closed)

Created:
4 years, 7 months ago by Nate Chapin
Modified:
4 years, 4 months ago
Reviewers:
hiroshige, horo
CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean 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)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1975373002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1975373002/20001
4 years, 7 months ago (2016-05-13 21:13:32 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/221645)
4 years, 7 months ago (2016-05-14 01:07:37 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1975373002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1975373002/60001
4 years, 7 months ago (2016-05-19 21:24:40 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 23:58:02 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1975373002/80001
4 years, 6 months ago (2016-06-14 21:41:56 UTC) #10
Nate Chapin
hiroshige, does this seem like a reasonable cleanup? I'm trying to make ResourceLoader as simple ...
4 years, 6 months ago (2016-06-16 17:41:01 UTC) #12
Nate Chapin
On 2016/06/16 17:41:01, Nate Chapin wrote: > hiroshige, does this seem like a reasonable cleanup? ...
4 years, 4 months ago (2016-07-26 16:44:03 UTC) #17
hiroshige
This CL reorders - Access control checks in ResourceLoader::didReceiveResponse() - Resource::responseReceived() (which contains access control ...
4 years, 4 months ago (2016-07-28 09:56:42 UTC) #18
Nate Chapin
Update CL description. Also moved the remaining bits of ResourceLoader::didReceiveResponse to ResourceFetcher, since there's no ...
4 years, 4 months ago (2016-07-28 22:29:36 UTC) #22
hiroshige
lgtm. https://codereview.chromium.org/1975373002/diff/160001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (left): https://codereview.chromium.org/1975373002/diff/160001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#oldcode958 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:958: context().dispatchDidFail(resource->identifier(), ResourceError(errorDomainBlinkInternal, 0, originalURL.getString(), "Unsafe attempt to load ...
4 years, 4 months ago (2016-07-29 08:00:27 UTC) #26
Nate Chapin
https://codereview.chromium.org/1975373002/diff/160001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (left): https://codereview.chromium.org/1975373002/diff/160001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#oldcode958 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:958: context().dispatchDidFail(resource->identifier(), ResourceError(errorDomainBlinkInternal, 0, originalURL.getString(), "Unsafe attempt to load URL ...
4 years, 4 months ago (2016-07-29 19:04:52 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1975373002/180001
4 years, 4 months ago (2016-07-29 19:05:45 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/271540)
4 years, 4 months ago (2016-07-29 20:16:36 UTC) #32
Nate Chapin
https://codereview.chromium.org/1975373002/diff/180001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1975373002/diff/180001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode977 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:977: resource->loader()->didFail(nullptr, ResourceError(errorDomainBlinkInternal, 0, originalURL.getString(), "Unsafe attempt to load URL ...
4 years, 4 months ago (2016-07-29 20:41:29 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1975373002/200001
4 years, 4 months ago (2016-07-29 20:41:36 UTC) #36
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-07-29 23:55:49 UTC) #38
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 23:57:16 UTC) #40
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/17f873489bd87f24bff5f0b93aeeedb19754694f
Cr-Commit-Position: refs/heads/master@{#408808}

Powered by Google App Engine
This is Rietveld 408576698