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

Issue 2020313002: Verify the order of RawResourceClient callbacks in DocumentThreadableLoader (Closed)

Created:
4 years, 6 months ago by hiroshige
Modified:
4 years, 4 months ago
Reviewers:
Nate Chapin, yhirano
CC:
chromium-reviews, tyoshino+watch_chromium.org, loading-reviews_chromium.org, 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

Verify the order of RawResourceClient callbacks in DocumentThreadableLoader The errors in the order of RawResourceClient callbacks potentially leads to CORS bypassing, especially in DocumentThreadableLoader. This CL introduces RawResourceClientStateChecker to check the order of RawResourceClient callbacks, assuming that the RawResourceClient is added to at most one RawResource, and applies it to DocumentThreadableLoader. BUG=633696, 640291 Committed: https://crrev.com/48136fcd4b053686ce2f1f98e64b00a064907ec4 Cr-Commit-Position: refs/heads/master@{#413990}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Reflect comments #

Patch Set 4 : Rebase. #

Patch Set 5 : Fix rebase error and update TODO comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -6 lines) Patch
M third_party/WebKit/Source/core/fetch/RawResource.h View 1 2 3 2 chunks +54 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/RawResource.cpp View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h View 1 2 3 4 3 chunks +11 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 2 3 8 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (22 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/2020313002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2020313002/1
4 years, 6 months ago (2016-05-31 15:20:55 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/168484)
4 years, 6 months ago (2016-05-31 15:49:09 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/2020313002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2020313002/20001
4 years, 6 months ago (2016-05-31 16:04:24 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-31 18:10:02 UTC) #8
hiroshige
I think it is important to check that ThreadableLoader's responseReceived() is always called before dataReceived() ...
4 years, 6 months ago (2016-06-01 02:58:09 UTC) #10
yhirano
https://codereview.chromium.org/2020313002/diff/20001/third_party/WebKit/Source/core/fetch/RawResource.h File third_party/WebKit/Source/core/fetch/RawResource.h (right): https://codereview.chromium.org/2020313002/diff/20001/third_party/WebKit/Source/core/fetch/RawResource.h#newcode147 third_party/WebKit/Source/core/fetch/RawResource.h:147: class CORE_EXPORT RawResourceClientStateChecker { +final https://codereview.chromium.org/2020313002/diff/20001/third_party/WebKit/Source/core/fetch/RawResource.h#newcode153 third_party/WebKit/Source/core/fetch/RawResource.h:153: void willAddClient(); ...
4 years, 6 months ago (2016-06-03 07:25:13 UTC) #12
hiroshige
https://codereview.chromium.org/2020313002/diff/20001/third_party/WebKit/Source/core/fetch/RawResource.h File third_party/WebKit/Source/core/fetch/RawResource.h (right): https://codereview.chromium.org/2020313002/diff/20001/third_party/WebKit/Source/core/fetch/RawResource.h#newcode153 third_party/WebKit/Source/core/fetch/RawResource.h:153: void willAddClient(); On 2016/06/03 07:25:13, yhirano wrote: > I'm ...
4 years, 6 months ago (2016-06-03 09:58:38 UTC) #13
yhirano
https://codereview.chromium.org/2020313002/diff/20001/third_party/WebKit/Source/core/fetch/RawResource.h File third_party/WebKit/Source/core/fetch/RawResource.h (right): https://codereview.chromium.org/2020313002/diff/20001/third_party/WebKit/Source/core/fetch/RawResource.h#newcode153 third_party/WebKit/Source/core/fetch/RawResource.h:153: void willAddClient(); On 2016/06/03 09:58:38, hiroshige (slow) wrote: > ...
4 years, 6 months ago (2016-06-07 05:18:26 UTC) #14
hiroshige
PTAL. https://codereview.chromium.org/2020313002/diff/20001/third_party/WebKit/Source/core/fetch/RawResource.h File third_party/WebKit/Source/core/fetch/RawResource.h (right): https://codereview.chromium.org/2020313002/diff/20001/third_party/WebKit/Source/core/fetch/RawResource.h#newcode147 third_party/WebKit/Source/core/fetch/RawResource.h:147: class CORE_EXPORT RawResourceClientStateChecker { On 2016/06/03 07:25:13, yhirano ...
4 years, 4 months ago (2016-08-03 11:50:34 UTC) #15
hiroshige
+japhet@, could you also take a look as a core/fetch OWNER?
4 years, 4 months ago (2016-08-04 15:34:10 UTC) #21
Nate Chapin
On 2016/08/04 15:34:10, hiroshige wrote: > +japhet@, could you also take a look as a ...
4 years, 4 months ago (2016-08-04 16:46:16 UTC) #22
hiroshige
On 2016/08/04 16:46:16, Nate Chapin wrote: > On 2016/08/04 15:34:10, hiroshige wrote: > > +japhet@, ...
4 years, 4 months ago (2016-08-05 05:11:37 UTC) #23
hiroshige
On 2016/08/05 05:11:37, hiroshige wrote: > On 2016/08/04 16:46:16, Nate Chapin wrote: > > On ...
4 years, 4 months ago (2016-08-05 05:14:28 UTC) #25
yhirano
> For generality, I'd like to apply RawResourceClientStateChecker (or similar > checker) to all RawResourceClient ...
4 years, 4 months ago (2016-08-08 08:59:08 UTC) #26
hiroshige
On 2016/08/08 08:59:08, yhirano wrote: > > For generality, I'd like to apply RawResourceClientStateChecker (or ...
4 years, 4 months ago (2016-08-08 09:12:55 UTC) #27
yhirano
On 2016/08/08 09:12:55, hiroshige wrote: > On 2016/08/08 08:59:08, yhirano wrote: > > > For ...
4 years, 4 months ago (2016-08-08 09:22:36 UTC) #28
hiroshige
On 2016/08/08 09:22:36, yhirano wrote: > On 2016/08/08 09:12:55, hiroshige wrote: > > On 2016/08/08 ...
4 years, 4 months ago (2016-08-08 10:07:50 UTC) #29
yhirano
lgtm
4 years, 4 months ago (2016-08-09 08:14:51 UTC) #30
hiroshige
japhet@, could you take a look?
4 years, 4 months ago (2016-08-10 13:53:56 UTC) #31
hiroshige
japhet@, friendly ping.
4 years, 4 months ago (2016-08-23 10:31:04 UTC) #32
Nate Chapin
lgtm
4 years, 4 months ago (2016-08-23 16:25:13 UTC) #34
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/2020313002/100001
4 years, 4 months ago (2016-08-23 19:24:52 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/279351)
4 years, 4 months ago (2016-08-23 22:20:12 UTC) #42
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/2020313002/100001
4 years, 4 months ago (2016-08-24 04:25:32 UTC) #44
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 4 months ago (2016-08-24 05:52:48 UTC) #46
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 05:55:00 UTC) #48
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/48136fcd4b053686ce2f1f98e64b00a064907ec4
Cr-Commit-Position: refs/heads/master@{#413990}

Powered by Google App Engine
This is Rietveld 408576698