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

Issue 15738007: Protect WebURLLoaderImpl::Context while receiving responses. (Closed)

Created:
7 years, 7 months ago by gavinp
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Protect WebURLLoaderImpl::Context while receiving responses. A client's didReceiveResponse can cancel a request; by protecting the Context we avoid a use after free in this case. Interestingly, we really had very good warning about this problem, see https://codereview.chromium.org/11900002/ back in January. R=darin BUG=241139 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202821 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203935

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -0 lines) Patch
M content/browser/webkit_browsertest.cc View 1 chunk +15 lines, -0 lines 0 comments Download
A content/test/data/error-body-no-crash.html View 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/glue/weburlloader_impl.cc View 1 chunk +1 line, -0 lines 2 comments Download

Messages

Total messages: 16 (0 generated)
gavinp
darin: Can you PTAL at this? I chose you as an OWNER in both content/ ...
7 years, 7 months ago (2013-05-22 15:19:29 UTC) #1
gavinp
+inferno: FYI.
7 years, 7 months ago (2013-05-23 14:37:06 UTC) #2
darin (slow to review)
https://codereview.chromium.org/15738007/diff/1/webkit/glue/weburlloader_impl.cc File webkit/glue/weburlloader_impl.cc (right): https://codereview.chromium.org/15738007/diff/1/webkit/glue/weburlloader_impl.cc#newcode654 webkit/glue/weburlloader_impl.cc:654: scoped_refptr<Context> protect(this); This looks like it'll do the trick ...
7 years, 7 months ago (2013-05-23 14:42:09 UTC) #3
inferno
On 2013/05/23 14:42:09, darin wrote: > https://codereview.chromium.org/15738007/diff/1/webkit/glue/weburlloader_impl.cc > File webkit/glue/weburlloader_impl.cc (right): > > https://codereview.chromium.org/15738007/diff/1/webkit/glue/weburlloader_impl.cc#newcode654 > ...
7 years, 7 months ago (2013-05-23 15:48:27 UTC) #4
gavinp
https://codereview.chromium.org/15738007/diff/1/webkit/glue/weburlloader_impl.cc File webkit/glue/weburlloader_impl.cc (right): https://codereview.chromium.org/15738007/diff/1/webkit/glue/weburlloader_impl.cc#newcode654 webkit/glue/weburlloader_impl.cc:654: scoped_refptr<Context> protect(this); On 2013/05/23 14:42:09, darin wrote: > This ...
7 years, 6 months ago (2013-05-28 16:25:35 UTC) #5
gavinp
Darin, I've read WebURLLoader a bit more carefully; it's a lot of manual lifetime management ...
7 years, 6 months ago (2013-05-28 20:16:30 UTC) #6
darin (slow to review)
OK, LGTM I think this system is due for an overhaul anyways. Once we switch ...
7 years, 6 months ago (2013-05-28 22:51:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/15738007/1
7 years, 6 months ago (2013-05-28 22:57:55 UTC) #8
commit-bot: I haz the power
Change committed as 202821
7 years, 6 months ago (2013-05-29 08:26:08 UTC) #9
gavinp
On 2013/05/29 08:26:08, I haz the power (commit-bot) wrote: > Change committed as 202821 Re ...
7 years, 6 months ago (2013-05-29 18:39:36 UTC) #10
gavinp
On 2013/05/29 18:39:36, gavinp wrote: > On 2013/05/29 08:26:08, I haz the power (commit-bot) wrote: ...
7 years, 6 months ago (2013-05-30 15:40:21 UTC) #11
gavinp
https://chromiumcodereview.appspot.com/15725010/ has now landed in blink, we're waiting for blink to garden up to 151609 ...
7 years, 6 months ago (2013-06-03 13:39:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/15738007/1
7 years, 6 months ago (2013-06-03 13:39:52 UTC) #13
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 6 months ago (2013-06-03 21:53:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/15738007/1
7 years, 6 months ago (2013-06-03 22:02:06 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-04 12:35:57 UTC) #16
Message was sent while issue was closed.
Change committed as 203935

Powered by Google App Engine
This is Rietveld 408576698