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

Issue 2844913002: Drop GetFrame()->GetDocument() usage in FrameFetchContext (Closed)

Created:
3 years, 7 months ago by Nate Chapin
Modified:
3 years, 7 months ago
Reviewers:
kinuko, Yoav Weiss
CC:
chromium-reviews, gavinp+prerender_chromium.org, tyoshino+watch_chromium.org, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kinuko+watch, Nate Chapin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Drop GetFrame()->GetDocument() usage in FrameFetchContext It's a workaround for the fact that FrameFetchContext::GetDocument() will be null before FrameFetchConext::document_loader_ commits, and in that case, it's not right to go to GetFrame()->GetDocument(), which is an unrelated Document. Either get to the relevant ExecutionContext, or use LocalFrame directly where an ExecutionContext/SecurityContext isn't needed (e.g., for UseCounters). BUG= Review-Url: https://codereview.chromium.org/2844913002 Cr-Commit-Position: refs/heads/master@{#469127} Committed: https://chromium.googlesource.com/chromium/src/+/20f06e18b747e0f99ed657ce461c4db97fb97f7c

Patch Set 1 #

Patch Set 2 : Unwind LoadLinksFromHeader #

Patch Set 3 : Fix last crash #

Total comments: 4

Patch Set 4 : Add comment in SendMessageToConsoleForPossiblyNullDocument #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -53 lines) Patch
M third_party/WebKit/Source/core/loader/BaseFetchContext.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/BaseFetchContext.cpp View 1 1 chunk +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/BaseFetchContextTest.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 chunks +18 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.h View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 1 2 3 7 chunks +56 lines, -28 lines 0 comments Download

Messages

Total messages: 23 (18 generated)
Nate Chapin
kinuko: PTAL yoav: Please sanity-check the LinkLoader changes :) https://codereview.chromium.org/2844913002/diff/40001/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp File third_party/WebKit/Source/core/loader/BaseFetchContext.cpp (right): https://codereview.chromium.org/2844913002/diff/40001/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp#newcode265 third_party/WebKit/Source/core/loader/BaseFetchContext.cpp:265: ...
3 years, 7 months ago (2017-04-28 21:33:32 UTC) #13
kinuko
lgtm https://codereview.chromium.org/2844913002/diff/40001/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp File third_party/WebKit/Source/core/loader/BaseFetchContext.cpp (right): https://codereview.chromium.org/2844913002/diff/40001/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp#newcode265 third_party/WebKit/Source/core/loader/BaseFetchContext.cpp:265: : GetParentSecurityContext(); On 2017/04/28 21:33:31, Nate Chapin wrote: ...
3 years, 7 months ago (2017-04-29 14:10:21 UTC) #16
Yoav Weiss
lgtm
3 years, 7 months ago (2017-05-03 07:13:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2844913002/60001
3 years, 7 months ago (2017-05-03 19:24:53 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 21:16:04 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/20f06e18b747e0f99ed657ce461c...

Powered by Google App Engine
This is Rietveld 408576698