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

Issue 2470083002: Part 2.1: Is policy list subsumed under subsuming policy? (Closed)

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

Description

Part 2.1: Is policy list subsumed under subsuming policy? This is part of an experimental feature Embedding-CSP. In particular this is the second CL devoted to implementing *3.3. Is policy list subsumed under subsuming policy? In this patch we try to find normalized list of CSPSources from the two given vectors of CSPSources. Example: A: http://*.example.com B: http://example.com/index.html In this case, the latter contains more information because it provides a more specific path and no host wildcard. Thus, their normalization would be equivalent to B. Example: A: http:// B: http://example.com/index.html Scheme-source/ host-source expression normalization should be equivalent to B. Example: A: https:// B: http://example.com/index.html Scheme-source/ host-source expression normalization should return https://example.com/index.html. BUG=647588 Committed: https://crrev.com/14162d1652623759b9d3528bda3b22b4952d47b4 Cr-Commit-Position: refs/heads/master@{#430267}

Patch Set 1 #

Patch Set 2 : Rebasing on part1.1 #

Total comments: 3

Patch Set 3 : Renaming, checking for 0 port #

Patch Set 4 : Rebasing on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -0 lines) Patch
M third_party/WebKit/Source/core/frame/csp/CSPSource.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPSource.cpp View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp View 1 3 1 chunk +101 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirective.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp View 1 2 3 chunks +80 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (15 generated)
amalika
4 years, 1 month ago (2016-11-02 10:14:36 UTC) #4
commit-bot: I haz the power
This CL has an open dependency (Issue 2442513004 Patch 100001). Please resolve the dependency and ...
4 years, 1 month ago (2016-11-02 10:14:48 UTC) #6
jochen (gone - plz use gerrit)
waiting for this CL to be rebased on top of 1.1
4 years, 1 month ago (2016-11-04 09:29:57 UTC) #11
amalika
Rebased! https://codereview.chromium.org/2470083002/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp File third_party/WebKit/Source/core/frame/csp/CSPSource.cpp (right): https://codereview.chromium.org/2470083002/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp#newcode148 third_party/WebKit/Source/core/frame/csp/CSPSource.cpp:148: String scheme = other->schemeMatches(m_scheme) ? m_scheme : other->m_scheme; ...
4 years, 1 month ago (2016-11-04 10:42:40 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2470083002/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp File third_party/WebKit/Source/core/frame/csp/CSPSource.cpp (right): https://codereview.chromium.org/2470083002/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp#newcode151 third_party/WebKit/Source/core/frame/csp/CSPSource.cpp:151: int port = m_portWildcard == NoWildcard ? m_port : ...
4 years, 1 month ago (2016-11-04 13:14:51 UTC) #14
amalika
On 2016/11/04 at 13:14:51, jochen wrote: > https://codereview.chromium.org/2470083002/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp > File third_party/WebKit/Source/core/frame/csp/CSPSource.cpp (right): > > https://codereview.chromium.org/2470083002/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp#newcode151 ...
4 years, 1 month ago (2016-11-04 13:34:38 UTC) #15
jochen (gone - plz use gerrit)
lgtm
4 years, 1 month ago (2016-11-04 15:04:29 UTC) #16
jochen (gone - plz use gerrit)
please remember to upgrade the CL description to mirror the CL title in the first ...
4 years, 1 month ago (2016-11-04 15:05:21 UTC) #17
Mike West
LGTM2. Thanks for adding the extensive tests.
4 years, 1 month ago (2016-11-07 10:35:43 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/2470083002/60001
4 years, 1 month ago (2016-11-07 10:39:19 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/310022) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-11-07 10:41:51 UTC) #23
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/2470083002/80001
4 years, 1 month ago (2016-11-07 12:51:07 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 1 month ago (2016-11-07 14:14:38 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 14:19:21 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/14162d1652623759b9d3528bda3b22b4952d47b4
Cr-Commit-Position: refs/heads/master@{#430267}

Powered by Google App Engine
This is Rietveld 408576698