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

Issue 15725010: Guard ResourceLoader::didReceiveData in error case. (Closed)

Created:
7 years, 6 months ago by gavinp
Modified:
7 years, 6 months ago
CC:
blink-reviews, Nate Chapin, eae+blinkwatch, gavinp+loader_chromium.org
Visibility:
Public.

Description

Guard ResourceLoader::didReceiveData in error case. A subresource can receive a body on a 404 if its call to CachedResource::error() happens around a nested message loop. This can cause a crash when data finally is received. This is a regression brought about by refactoring, I thought I fixed this in https://bugs.webkit.org/show_bug.cgi?id=103563 , but the fix dissapeared. Tested in a content_browsertest, see https://codereview.chromium.org/15738007/ which can land after this is gardened in. BUG=241139 R=japhet Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151609

Patch Set 1 #

Patch Set 2 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M Source/core/loader/ResourceLoader.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
gavinp
japhet, WDYT?
7 years, 6 months ago (2013-05-30 15:39:57 UTC) #1
Nate Chapin
Ah....nested message loops, that's why it's necessary. I mistook it for leftover cruft. LGTM Please ...
7 years, 6 months ago (2013-05-30 15:42:33 UTC) #2
gavinp
add comment
7 years, 6 months ago (2013-05-30 18:00:28 UTC) #3
gavinp
Thanks for the review Nate. I decline to say how much time I spent going ...
7 years, 6 months ago (2013-05-30 18:04:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/15725010/4001
7 years, 6 months ago (2013-05-30 18:04:24 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=10958
7 years, 6 months ago (2013-05-30 19:29:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/15725010/4001
7 years, 6 months ago (2013-05-30 19:41:49 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=10965
7 years, 6 months ago (2013-05-30 20:29:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/15725010/4001
7 years, 6 months ago (2013-05-31 14:24:05 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=8086
7 years, 6 months ago (2013-05-31 16:27:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/15725010/4001
7 years, 6 months ago (2013-05-31 16:36:15 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=8139
7 years, 6 months ago (2013-05-31 19:34:32 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/15725010/4001
7 years, 6 months ago (2013-05-31 20:46:04 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=8197
7 years, 6 months ago (2013-06-01 00:33:02 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/15725010/4001
7 years, 6 months ago (2013-06-02 18:48:20 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-02 21:13:32 UTC) #16
Message was sent while issue was closed.
Change committed as 151609

Powered by Google App Engine
This is Rietveld 408576698