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

Issue 1603783002: Add null check of the return value of Document::frame() in DTL::reportResponseReceived(). (Closed)

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

Description

Add null check of the return value of Document::frame() in DTL::reportResponseReceived() BUG=578849 Committed: https://crrev.com/d2535dca624b5531247dbcbc2048dded6e9c45fc Cr-Commit-Position: refs/heads/master@{#370674}

Patch Set 1 #

Total comments: 3

Patch Set 2 : add comments and ASSERT #

Total comments: 2

Patch Set 3 : use TODO #

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

Messages

Total messages: 20 (7 generated)
horo
Could you please review this?
4 years, 11 months ago (2016-01-19 03:26:11 UTC) #3
kinuko
https://codereview.chromium.org/1603783002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1603783002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode435 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:435: InspectorInstrumentation::didReceiveCORSRedirectResponse(document().frame(), resource->identifier(), document().frame()->loader().documentLoader(), redirectResponse, 0); We access document().frame() in ...
4 years, 11 months ago (2016-01-19 13:48:08 UTC) #4
kinuko
Could this happen when XML request is made in unload handler?
4 years, 11 months ago (2016-01-19 13:48:54 UTC) #5
horo
On 2016/01/19 13:48:54, kinuko wrote: > Could this happen when XML request is made in ...
4 years, 11 months ago (2016-01-20 03:57:36 UTC) #6
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1603783002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1603783002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode435 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:435: InspectorInstrumentation::didReceiveCORSRedirectResponse(document().frame(), resource->identifier(), document().frame()->loader().documentLoader(), redirectResponse, 0); On 2016/01/20 03:57:36, horo ...
4 years, 11 months ago (2016-01-20 07:55:50 UTC) #8
kinuko
Hmm.. thanks for further investigation. Could we still have a brief description and link to ...
4 years, 11 months ago (2016-01-20 08:20:41 UTC) #9
horo
On 2016/01/20 08:20:41, kinuko wrote: > Hmm.. thanks for further investigation. Could we still have ...
4 years, 11 months ago (2016-01-21 08:26:25 UTC) #10
kinuko
lgtm https://codereview.chromium.org/1603783002/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1603783002/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode574 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:574: // must be set here. FIXME: Find the ...
4 years, 11 months ago (2016-01-21 09:09:24 UTC) #11
horo
https://codereview.chromium.org/1603783002/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1603783002/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode574 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:574: // must be set here. FIXME: Find the root ...
4 years, 11 months ago (2016-01-21 09:28:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1603783002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1603783002/40001
4 years, 11 months ago (2016-01-21 09:29:28 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-21 12:24:50 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/d2535dca624b5531247dbcbc2048dded6e9c45fc Cr-Commit-Position: refs/heads/master@{#370674}
4 years, 11 months ago (2016-01-21 12:25:39 UTC) #19
tyoshino (SeeGerritForStatus)
4 years, 11 months ago (2016-01-21 14:24:07 UTC) #20
Message was sent while issue was closed.
lgtm

On 2016/01/20 08:20:41, kinuko wrote:
> Hmm.. thanks for further investigation.  Could we still have a brief
description
> and link to the crbug in a comment?  I'd like to avoid adding null checks
> without valid reasons.
> 
> tyoshino-san: comments in xhr code seem to be a bit obsolete? It would be nice
> if clean it up a bit.

I'll try to. Filed http://crbug.com/580068

Powered by Google App Engine
This is Rietveld 408576698