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

Issue 2823213002: Implement CanRequest in BaseFetchContext (Closed)

Created:
3 years, 8 months ago by kinuko
Modified:
3 years, 8 months ago
Reviewers:
Nate Chapin, Mike West, horo
CC:
blink-reviews, chromium-reviews, Yoav Weiss
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement CanRequest in BaseFetchContext BUG=695279, 538751 Review-Url: https://codereview.chromium.org/2823213002 Cr-Commit-Position: refs/heads/master@{#466610} Committed: https://chromium.googlesource.com/chromium/src/+/c9dd99240fda60e9daca1f9b87c20a92b10de38a

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Total comments: 8

Patch Set 4 : rebase, tests #

Total comments: 7

Patch Set 5 : make it work with non-document #

Unified diffs Side-by-side diffs Delta from patch set Stats (+505 lines, -349 lines) Patch
M third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp View 1 2 3 4 3 chunks +23 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/loader/BaseFetchContext.h View 1 2 3 4 2 chunks +74 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/BaseFetchContext.cpp View 1 2 3 3 chunks +237 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/BaseFetchContextTest.cpp View 1 2 3 4 2 chunks +79 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 2 3 2 chunks +16 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 3 chunks +63 lines, -242 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 3 4 1 chunk +0 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/core/loader/SubresourceFilter.h View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/SubresourceFilter.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/testing/NullExecutionContext.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/NullExecutionContext.cpp View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (29 generated)
kinuko
Might look a bit silly, but let me hear what you think. (Context: I want ...
3 years, 8 months ago (2017-04-19 09:00:13 UTC) #16
horo
https://codereview.chromium.org/2823213002/diff/40001/third_party/WebKit/Source/core/loader/BaseFetchContext.h File third_party/WebKit/Source/core/loader/BaseFetchContext.h (right): https://codereview.chromium.org/2823213002/diff/40001/third_party/WebKit/Source/core/loader/BaseFetchContext.h#newcode64 third_party/WebKit/Source/core/loader/BaseFetchContext.h:64: virtual void CountUsage(UseCounter::Feature) const = 0; Why don't you ...
3 years, 8 months ago (2017-04-19 11:38:39 UTC) #17
kinuko
https://codereview.chromium.org/2823213002/diff/40001/third_party/WebKit/Source/core/loader/BaseFetchContext.h File third_party/WebKit/Source/core/loader/BaseFetchContext.h (right): https://codereview.chromium.org/2823213002/diff/40001/third_party/WebKit/Source/core/loader/BaseFetchContext.h#newcode64 third_party/WebKit/Source/core/loader/BaseFetchContext.h:64: virtual void CountUsage(UseCounter::Feature) const = 0; On 2017/04/19 11:38:39, ...
3 years, 8 months ago (2017-04-20 02:33:22 UTC) #18
horo
lgtm with nits https://codereview.chromium.org/2823213002/diff/40001/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp File third_party/WebKit/Source/core/loader/BaseFetchContext.cpp (right): https://codereview.chromium.org/2823213002/diff/40001/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp#newcode203 third_party/WebKit/Source/core/loader/BaseFetchContext.cpp:203: if (!GetContentSettingsClient()->AllowScriptFromSource( nit: We should check ...
3 years, 8 months ago (2017-04-20 06:00:48 UTC) #19
kinuko
Thanks, updated. Rebased and also moved some tests from FrameFetchContextTest to BaseFetchContextTest. Nate: What do ...
3 years, 8 months ago (2017-04-21 09:45:27 UTC) #24
Nate Chapin
LGTM with a couple nits. https://codereview.chromium.org/2823213002/diff/60001/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp File third_party/WebKit/Source/core/loader/BaseFetchContext.cpp (right): https://codereview.chromium.org/2823213002/diff/60001/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp#newcode190 third_party/WebKit/Source/core/loader/BaseFetchContext.cpp:190: ReportLocalLoadFailed(url); Maybe add a ...
3 years, 8 months ago (2017-04-21 18:33:07 UTC) #27
kinuko
Thanks! Updated. https://codereview.chromium.org/2823213002/diff/60001/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp File third_party/WebKit/Source/core/loader/BaseFetchContext.cpp (right): https://codereview.chromium.org/2823213002/diff/60001/third_party/WebKit/Source/core/loader/BaseFetchContext.cpp#newcode190 third_party/WebKit/Source/core/loader/BaseFetchContext.cpp:190: ReportLocalLoadFailed(url); On 2017/04/21 18:33:07, Nate Chapin wrote: ...
3 years, 8 months ago (2017-04-24 06:05:27 UTC) #28
kinuko
On 2017/04/24 06:05:27, kinuko wrote: > https://codereview.chromium.org/2823213002/diff/60001/third_party/WebKit/Source/core/loader/BaseFetchContextTest.cpp#newcode77 > third_party/WebKit/Source/core/loader/BaseFetchContextTest.cpp:77: > execution_context_ = Document::Create(); > On ...
3 years, 8 months ago (2017-04-24 06:08:26 UTC) #32
kinuko
On 2017/04/24 06:08:26, kinuko wrote: > On 2017/04/24 06:05:27, kinuko wrote: > > > https://codereview.chromium.org/2823213002/diff/60001/third_party/WebKit/Source/core/loader/BaseFetchContextTest.cpp#newcode77 ...
3 years, 8 months ago (2017-04-24 06:08:41 UTC) #33
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/2823213002/80001
3 years, 8 months ago (2017-04-24 06:53:54 UTC) #37
Mike West
CSP bits LGTM, thanks!
3 years, 8 months ago (2017-04-24 07:19:41 UTC) #38
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 09:30:55 UTC) #41
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c9dd99240fda60e9daca1f9b87c2...

Powered by Google App Engine
This is Rietveld 408576698