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

Issue 1902683002: DocumentThreadableLoader: Add guards for sync notifyFinished() in setResource() (Closed)

Created:
4 years, 8 months ago by hiroshige
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DocumentThreadableLoader: Add guards for sync notifyFinished() in setResource() In loadRequest(), setResource() can call clear() synchronously: DocumentThreadableLoader::clear() DocumentThreadableLoader::handleError() Resource::didAddClient() RawResource::didAddClient() and thus |m_client| can be null while resource() isn't null after setResource(), causing crashes (Issue 595964). This CL checks whether |*this| is destructed and whether |m_client| is null after setResource(). BUG=595964 Committed: https://crrev.com/2571533bbb5b554ff47205c8ef1513ccc0817c3e Cr-Commit-Position: refs/heads/master@{#391001}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (12 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/1902683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1902683002/1
4 years, 8 months ago (2016-04-19 05:05:05 UTC) #2
hiroshige
PTAL. (this should be merged to at least M-51 beta)
4 years, 8 months ago (2016-04-19 06:11:18 UTC) #5
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/1902683002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1902683002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode863 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:863: return; add comment to note that we need ...
4 years, 8 months ago (2016-04-19 06:27:44 UTC) #6
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1902683002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1902683002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode863 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:863: return; On 2016/04/19 06:27:44, tyoshino wrote: > add comment ...
4 years, 8 months ago (2016-04-19 06:29:00 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-19 06:32:40 UTC) #9
hiroshige
+japhet@, could you take a look as a core/loader OWNER? https://codereview.chromium.org/1902683002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1902683002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode863 ...
4 years, 8 months ago (2016-04-19 06:40:48 UTC) #12
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1902683002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1902683002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode863 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:863: return; On 2016/04/19 06:40:48, hiroshige wrote: > On 2016/04/19 ...
4 years, 8 months ago (2016-04-19 08:31:32 UTC) #13
hiroshige
japhet@, could you take a look?
4 years, 8 months ago (2016-04-21 16:08:09 UTC) #14
hiroshige
friendly ping.
4 years, 8 months ago (2016-04-26 09:49:19 UTC) #15
hiroshige
+mkwst@ as another core/loader owner. PTAL.
4 years, 7 months ago (2016-05-02 09:19:53 UTC) #17
Mike West
LGTM. Is there a test you can add that would verify the behavior?
4 years, 7 months ago (2016-05-02 09:32:01 UTC) #18
hiroshige
On 2016/05/02 09:32:01, Mike West wrote: > LGTM. Is there a test you can add ...
4 years, 7 months ago (2016-05-02 10:02:47 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1902683002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1902683002/20001
4 years, 7 months ago (2016-05-02 10:03:10 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-02 11:02:53 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1902683002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1902683002/20001
4 years, 7 months ago (2016-05-02 18:23:18 UTC) #25
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-02 18:30:52 UTC) #27
commit-bot: I haz the power
4 years, 7 months ago (2016-05-02 18:32:33 UTC) #29
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2571533bbb5b554ff47205c8ef1513ccc0817c3e
Cr-Commit-Position: refs/heads/master@{#391001}

Powered by Google App Engine
This is Rietveld 408576698