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

Issue 2442513004: Part 1.1: Is policy list subsumed under subsuming policy? (Closed)

Created:
4 years, 2 months 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 1.1: Is policy list subsumed under subsuming policy? This is part of an experimental feature Embedding-CSP. In particular this is the initial effort in implementing *3.3. Is policy list subsumed under subsuming policy? Given two CSPSources, we try to determine whether one is subsumed under another. If not, return false. BUG=647588 Committed: https://crrev.com/ab18fdcd7bad1f68ec6bc0d2ebdb67fd5f200df0 Cr-Commit-Position: refs/heads/master@{#429872}

Patch Set 1 : Addressing comments #

Total comments: 6

Patch Set 2 : Separating functionalities #

Total comments: 10

Patch Set 3 : More tests, separating methods #

Total comments: 1

Patch Set 4 : CSPSource subsumption #

Total comments: 10

Patch Set 5 : Addressing commnets #

Patch Set 6 : removing unnecessary checks in isSchemeSubsumedBY #

Patch Set 7 : Getting rid of similarity #

Total comments: 2

Patch Set 8 : Renaming to 'subsumes' #

Patch Set 9 : Addressing last comments #

Patch Set 10 : Changing comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -0 lines) Patch
M third_party/WebKit/Source/core/frame/csp/CSPSource.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPSource.cpp View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp View 1 2 3 4 5 6 7 1 chunk +221 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (12 generated)
amalika
There are quite a lot of tests... Some more corner cases were found.
4 years, 2 months ago (2016-10-21 14:49:17 UTC) #2
Mike West
https://codereview.chromium.org/2442513004/diff/1/third_party/WebKit/Source/core/frame/csp/CSPSource.h File third_party/WebKit/Source/core/frame/csp/CSPSource.h (right): https://codereview.chromium.org/2442513004/diff/1/third_party/WebKit/Source/core/frame/csp/CSPSource.h#newcode34 third_party/WebKit/Source/core/frame/csp/CSPSource.h:34: static Member<CSPSource> getNormalized(Member<CSPSource>, Member<CSPSource>); 1. You can probably just ...
4 years, 1 month ago (2016-10-24 12:17:55 UTC) #4
amalika
Addressing initial comments
4 years, 1 month ago (2016-10-24 14:29:55 UTC) #5
amalika
After our conversation, it seemed like it would indeed be better to separate functionalities (namely, ...
4 years, 1 month ago (2016-10-25 15:51:42 UTC) #6
Mike West
Before I get too much further, let's chat briefly about `isSimilar()`. https://codereview.chromium.org/2442513004/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPSource.h File third_party/WebKit/Source/core/frame/csp/CSPSource.h (right): ...
4 years, 1 month ago (2016-10-26 11:40:30 UTC) #7
amalika
Splitting into smaller parts + more tests. More description on the logic here: Is CSPSource ...
4 years, 1 month ago (2016-10-27 09:50:48 UTC) #8
amalika
Adding jochen@ for an overall review. The concepts of similarity and subsumption of CSPSources are ...
4 years, 1 month ago (2016-11-02 09:53:20 UTC) #12
jochen (gone - plz use gerrit)
i guess there's some implicit assumption that m_scheme is always one out of {ws wss ...
4 years, 1 month ago (2016-11-02 11:11:33 UTC) #13
amalika
Schemes can be something other than "http" and "ws" but there is a subsumption special ...
4 years, 1 month ago (2016-11-02 12:31:41 UTC) #14
amalika
Also a side note, initially i made a few optimizations instead of calling pathMatches twice ...
4 years, 1 month ago (2016-11-02 13:02:05 UTC) #15
jochen (gone - plz use gerrit)
On 2016/11/02 at 13:02:05, amalika wrote: > Also a side note, initially i made a ...
4 years, 1 month ago (2016-11-03 12:27:31 UTC) #16
jochen (gone - plz use gerrit)
btw, you need to repeat the CL title as the first line of the CL ...
4 years, 1 month ago (2016-11-03 12:29:05 UTC) #17
amalika
On 2016/11/03 at 12:27:31, jochen wrote: > On 2016/11/02 at 13:02:05, amalika wrote: > > ...
4 years, 1 month ago (2016-11-03 12:40:50 UTC) #19
jochen (gone - plz use gerrit)
On 2016/11/03 at 12:40:50, amalika wrote: > On 2016/11/03 at 12:27:31, jochen wrote: > > ...
4 years, 1 month ago (2016-11-03 15:07:02 UTC) #20
amalika
Greatly, simplifying the logic :) Also, changed the direction of subsumption (to check `this` is ...
4 years, 1 month ago (2016-11-03 19:58:37 UTC) #21
jochen (gone - plz use gerrit)
wow, so much easier to read! lgtm https://codereview.chromium.org/2442513004/diff/180001/third_party/WebKit/Source/core/frame/csp/CSPSource.h File third_party/WebKit/Source/core/frame/csp/CSPSource.h (right): https://codereview.chromium.org/2442513004/diff/180001/third_party/WebKit/Source/core/frame/csp/CSPSource.h#newcode35 third_party/WebKit/Source/core/frame/csp/CSPSource.h:35: // Check ...
4 years, 1 month ago (2016-11-04 09:15:43 UTC) #25
Mike West
This is a lot clearer, thanks for going through all the iterations. LGTM % text ...
4 years, 1 month ago (2016-11-04 09:48:10 UTC) #26
amalika
On 2016/11/04 at 09:48:10, mkwst wrote: > This is a lot clearer, thanks for going ...
4 years, 1 month ago (2016-11-04 10:06:49 UTC) #27
Mike West
On 2016/11/04 at 10:06:49, amalika wrote: > On 2016/11/04 at 09:48:10, mkwst wrote: > > ...
4 years, 1 month ago (2016-11-04 10:12:41 UTC) #28
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/2442513004/240001
4 years, 1 month ago (2016-11-04 12:00:45 UTC) #31
commit-bot: I haz the power
Committed patchset #10 (id:240001)
4 years, 1 month ago (2016-11-04 13:21:00 UTC) #32
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 13:23:00 UTC) #34
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/ab18fdcd7bad1f68ec6bc0d2ebdb67fd5f200df0
Cr-Commit-Position: refs/heads/master@{#429872}

Powered by Google App Engine
This is Rietveld 408576698