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

Issue 1307743009: Protect RawResource from deletion in RawResource::didSendData() and didDownloadData() (Closed)

Created:
5 years, 3 months ago by tyoshino (SeeGerritForStatus)
Modified:
5 years, 3 months ago
Reviewers:
hiroshige, Nate Chapin
CC:
blink-reviews, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Protect RawResource from deletion in RawResource::didSendData() and didDownloadData() ResourceClientWalker uses a reference to m_clients (a member of the RawResource instance). Therefore, when w.next() is invoked, the RawResource instance must be alive. RawResourceClient (e.g. DocumentThreadableLoader) may destroy the RawResource in didSendData() and didDownloadData(). Like other methods (appendData(), willFollowRedirect(), ...) these methods should also have a protect. BUG=527046 R=japhet,hiroshige Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201626

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M Source/core/fetch/RawResource.cpp View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
tyoshino (SeeGerritForStatus)
5 years, 3 months ago (2015-09-01 13:52:07 UTC) #2
tyoshino (SeeGerritForStatus)
mkwst is OOO? Adding japhet@.
5 years, 3 months ago (2015-09-01 13:54:07 UTC) #4
tyoshino (SeeGerritForStatus)
On 2015/09/01 13:54:07, tyoshino wrote: > mkwst is OOO? > > Adding japhet@. also +hiroshige
5 years, 3 months ago (2015-09-01 15:46:28 UTC) #6
Nate Chapin
LGTM. Test?
5 years, 3 months ago (2015-09-01 17:31:37 UTC) #7
hiroshige
On 2015/09/01 17:31:37, Nate Chapin wrote: > Test I called DocumentThreadableLoader::cancel() or delete DocumentThreadableLoader in ...
5 years, 3 months ago (2015-09-01 19:26:31 UTC) #8
Nate Chapin
Ok, thanks for trying. Still LGTM
5 years, 3 months ago (2015-09-01 21:24:35 UTC) #9
tyoshino (SeeGerritForStatus)
On 2015/09/01 19:26:31, hiroshige (slow) wrote: > On 2015/09/01 17:31:37, Nate Chapin wrote: > > ...
5 years, 3 months ago (2015-09-02 05:07:49 UTC) #10
tyoshino (SeeGerritForStatus)
On 2015/09/02 05:07:49, tyoshino wrote: > On 2015/09/01 19:26:31, hiroshige (slow) wrote: > > On ...
5 years, 3 months ago (2015-09-02 05:30:36 UTC) #11
hiroshige
lgtm. It's good to have protects, because - there might be another path that results ...
5 years, 3 months ago (2015-09-02 05:36:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307743009/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307743009/1
5 years, 3 months ago (2015-09-02 05:40:49 UTC) #14
commit-bot: I haz the power
5 years, 3 months ago (2015-09-02 07:32:35 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201626

Powered by Google App Engine
This is Rietveld 408576698