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

Issue 2536713002: Part 3.3: Is policy list subsumed under subsuming policy? (Closed)

Created:
4 years ago by amalika
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Part 3.3: Is policy list subsumed under subsuming policy? In this patch we consider special case of `allow all inline`. In particular, if the returned CSP allows all inline behavior but Embedding-CSP does not, then the latter does not subsume the former. BUG=647588 Committed: https://crrev.com/48b3b7a226affaa6e4f009da74252f185238e366 Cr-Commit-Position: refs/heads/master@{#435930}

Patch Set 1 #

Patch Set 2 : Rebasing #

Patch Set 3 : Rebasing #

Total comments: 3

Patch Set 4 : Using allowAllInline() #

Total comments: 8

Patch Set 5 : Removing checkInline() #

Patch Set 6 : Removing upstream part3.2 #

Patch Set 7 : Rebasing on master (that includes part3.2 changes) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -19 lines) Patch
M third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp View 1 2 3 4 5 8 chunks +18 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirective.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp View 1 2 3 4 5 6 2 chunks +33 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp View 1 2 3 4 5 6 2 chunks +168 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (17 generated)
amalika
In this patch we do *not* yet consider `allowEval`, etc attributes but only check if ...
4 years ago (2016-11-28 15:22:48 UTC) #2
Mike West
https://codereview.chromium.org/2536713002/diff/40001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp (right): https://codereview.chromium.org/2536713002/diff/40001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp#newcode589 third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp:589: return m_allowInline && !isHashOrNoncePresent() && Can we use this ...
4 years ago (2016-11-28 15:38:16 UTC) #3
amalika
https://codereview.chromium.org/2536713002/diff/40001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp (right): https://codereview.chromium.org/2536713002/diff/40001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp#newcode589 third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp:589: return m_allowInline && !isHashOrNoncePresent() && On 2016/11/28 at 15:38:16, ...
4 years ago (2016-11-29 09:42:29 UTC) #5
Mike West
https://codereview.chromium.org/2536713002/diff/80001/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp File third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp (right): https://codereview.chromium.org/2536713002/diff/80001/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp#newcode166 third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp:166: bool CSPDirectiveList::checkInline(SourceListDirective* directive) const { Can you just remove ...
4 years ago (2016-11-29 12:00:51 UTC) #6
amalika
https://codereview.chromium.org/2536713002/diff/80001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp (right): https://codereview.chromium.org/2536713002/diff/80001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp#newcode609 third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp:609: bool allowInlineOther = other[0]->m_allowInline; On 2016/11/29 at 12:00:50, Mike ...
4 years ago (2016-11-29 12:27:33 UTC) #9
Mike West
LGTM, other than the question about how you'd like to spell the various variables. I'm ...
4 years ago (2016-11-30 09:57:19 UTC) #10
amalika
Please, let me know if my thinking if right! Thanks! https://codereview.chromium.org/2536713002/diff/80001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp (right): https://codereview.chromium.org/2536713002/diff/80001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp#newcode609 ...
4 years ago (2016-11-30 10:06:07 UTC) #11
Mike West
On 2016/11/30 at 10:06:07, amalika wrote: > Please, let me know if my thinking if ...
4 years ago (2016-12-01 15:17:07 UTC) #18
Mike West
On 2016/12/01 at 15:17:07, Mike West (slow) wrote: > On 2016/11/30 at 10:06:07, amalika wrote: ...
4 years ago (2016-12-01 15:17:49 UTC) #19
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/2536713002/220001
4 years ago (2016-12-02 10:32:34 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:220001)
4 years ago (2016-12-02 13:33:50 UTC) #27
commit-bot: I haz the power
4 years ago (2016-12-02 13:35:42 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/48b3b7a226affaa6e4f009da74252f185238e366
Cr-Commit-Position: refs/heads/master@{#435930}

Powered by Google App Engine
This is Rietveld 408576698