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

Issue 2551873003: Part 3.7: 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.7: Is policy list subsumed under subsuming policy? This is part of an experimental feature Embedding-CSP. In this particular CL, we add support for a keyword source expression `strict-dynamic`. Consideration points: - We should not consider `self` or `unsafe-inline` when `strict-dynamic` is present - We should not consider host/scheme source expressions - We honor nonce/hash source expressions. - If B has `strict-dynamic`, then it must be that A has it too. Otherwise, A does not subsume B. BUG=647588 Committed: https://crrev.com/6c7269bdd0808219c799e9b60f8470618c6e7986 Cr-Commit-Position: refs/heads/master@{#437236}

Patch Set 1 : Separating into `allowSelf` method #

Total comments: 3

Patch Set 2 : Adding comments #

Patch Set 3 : Removing allowSelf #

Patch Set 4 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -1 line) Patch
M third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp View 1 2 2 chunks +14 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp View 1 2 3 1 chunk +176 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (11 generated)
amalika
https://codereview.chromium.org/2551873003/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp (right): https://codereview.chromium.org/2551873003/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp#newcode669 third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp:669: return allowDynamicOther || !normalizedB.size(); By this point, we should ...
4 years ago (2016-12-05 14:15:17 UTC) #2
Mike West
LGTM! https://codereview.chromium.org/2551873003/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp (right): https://codereview.chromium.org/2551873003/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp#newcode669 third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp:669: return allowDynamicOther || !normalizedB.size(); On 2016/12/05 at 14:15:17, ...
4 years ago (2016-12-06 19:03:16 UTC) #4
amalika
I thought that it might actually be easier to remove `allowSelf` to get cleaner code. ...
4 years ago (2016-12-07 12:02:08 UTC) #5
Mike West
Ok. Still LGTM.
4 years ago (2016-12-08 08:26:45 UTC) #6
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/2551873003/80001
4 years ago (2016-12-08 13:53:49 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years ago (2016-12-08 13:58:05 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-08 14:00:08 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6c7269bdd0808219c799e9b60f8470618c6e7986
Cr-Commit-Position: refs/heads/master@{#437236}

Powered by Google App Engine
This is Rietveld 408576698