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

Issue 2459483002: [Mojo-Loading] Dispatch body data after response is received (Closed)

Created:
4 years, 1 month ago by yhirano
Modified:
4 years, 1 month ago
Reviewers:
tapted, jam, tzik
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mojo-Loading] Dispatch body data after response is received MojoAsyncResourceHandler sometimes calls OnStartLoadingResponseBody before calling OnReceiveResponse. On the other hand, Blink doesn't expect onDataRecieved is called before onReceiveResponse. With this CL, URLLoaderClientImpl doesn't start reading the response body until OnReceivedResponse arrives. BUG=659917 Committed: https://crrev.com/17be6599bb1c41d82b1193ab24ca0173cbe897be Cr-Commit-Position: refs/heads/master@{#429787}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -3 lines) Patch
M content/child/resource_dispatcher.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M content/child/url_response_body_consumer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/url_response_body_consumer.cc View 2 chunks +7 lines, -3 lines 1 comment Download
M content/child/url_response_body_consumer_unittest.cc View 3 chunks +3 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (17 generated)
yhirano
This CL is for deflaking (not yet added) XHR layout tests with mojo-loading. I'll add ...
4 years, 1 month ago (2016-10-27 11:08:16 UTC) #9
tzik
lgtm
4 years, 1 month ago (2016-10-31 05:01:36 UTC) #12
yhirano
+jam@ for OWNER reivew.
4 years, 1 month ago (2016-10-31 10:47:21 UTC) #16
yhirano
On 2016/10/31 10:47:21, yhirano wrote: > +jam@ for OWNER reivew. jam@, can you take a ...
4 years, 1 month ago (2016-11-03 13:07:24 UTC) #17
jam
lgtm
4 years, 1 month ago (2016-11-04 00:45:31 UTC) #18
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/2459483002/20001
4 years, 1 month ago (2016-11-04 01:10:51 UTC) #20
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 1 month ago (2016-11-04 05:03:45 UTC) #22
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/17be6599bb1c41d82b1193ab24ca0173cbe897be Cr-Commit-Position: refs/heads/master@{#429787}
4 years, 1 month ago (2016-11-04 05:04:15 UTC) #24
tapted
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2466263008/ by tapted@chromium.org. ...
4 years, 1 month ago (2016-11-04 08:32:43 UTC) #25
tapted
https://codereview.chromium.org/2459483002/diff/20001/content/child/url_response_body_consumer.cc File content/child/url_response_body_consumer.cc (right): https://codereview.chromium.org/2459483002/diff/20001/content/child/url_response_body_consumer.cc#newcode91 content/child/url_response_body_consumer.cc:91: while (!has_been_cancelled_) { So the UAF is actually down ...
4 years, 1 month ago (2016-11-04 08:44:06 UTC) #27
horo
4 years, 1 month ago (2016-11-04 10:01:37 UTC) #28
Message was sent while issue was closed.
> MojoAsyncResourceHandler sometimes calls  OnStartLoadingResponseBody
> before calling OnReceiveResponse.

Could you please add comments about it in url_loader.mojom?

Powered by Google App Engine
This is Rietveld 408576698