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

Issue 2562953002: Part 5.2: 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 5.2: Is policy list subsumed under subsuming policy? In this CL we incorporate MediaListDirective subsumption logic into the main subsumption flow on CSPDirectiveLevel. BUG=647588 Committed: https://crrev.com/573bf02ee895447c8b662e66e8bff8d4d1a14aad Cr-Commit-Position: refs/heads/master@{#438486}

Patch Set 1 #

Total comments: 3

Patch Set 2 : HeapVector #

Total comments: 3

Patch Set 3 : Removing trace from MediaListDirective #

Total comments: 6

Patch Set 4 : More test cases, removing .get() on members #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -10 lines) Patch
M third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp View 1 2 3 1 chunk +10 lines, -1 line 1 comment Download
M third_party/WebKit/Source/core/frame/csp/CSPDirectiveListTest.cpp View 1 2 3 1 chunk +81 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/core/frame/csp/MediaListDirective.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/MediaListDirective.cpp View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/MediaListDirectiveTest.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
amalika
https://codereview.chromium.org/2562953002/diff/1/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp File third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp (right): https://codereview.chromium.org/2562953002/diff/1/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp#newcode1270 third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp:1270: std::vector<MediaListDirective*> pluginTypesOther; oilpan-reviews@ maybe this should be HeapVector<Member<>> instead? ...
4 years ago (2016-12-09 10:24:40 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2562953002/diff/1/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp File third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp (right): https://codereview.chromium.org/2562953002/diff/1/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp#newcode1270 third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp:1270: std::vector<MediaListDirective*> pluginTypesOther; On 2016/12/09 at 10:24:40, amalika wrote: > ...
4 years ago (2016-12-12 07:40:16 UTC) #4
amalika
Updated to using HeapVector of MediaListDirective members as per our discussion with jochen@ since m_pluginTypes ...
4 years ago (2016-12-13 08:31:52 UTC) #5
haraken
Oilpan part looks good. https://codereview.chromium.org/2562953002/diff/20001/third_party/WebKit/Source/core/frame/csp/MediaListDirective.cpp File third_party/WebKit/Source/core/frame/csp/MediaListDirective.cpp (right): https://codereview.chromium.org/2562953002/diff/20001/third_party/WebKit/Source/core/frame/csp/MediaListDirective.cpp#newcode121 third_party/WebKit/Source/core/frame/csp/MediaListDirective.cpp:121: CSPDirective::trace(visitor); On 2016/12/13 08:31:52, amalika ...
4 years ago (2016-12-13 08:43:38 UTC) #7
amalika
Removing unnecessary DEFINE_TRACE from MediaListDirective
4 years ago (2016-12-13 13:07:11 UTC) #8
sof
just a style nit wrt get() usage; when dealing with GC pointer types, get() is ...
4 years ago (2016-12-13 13:38:54 UTC) #10
Mike West
https://codereview.chromium.org/2562953002/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp File third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp (right): https://codereview.chromium.org/2562953002/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp#newcode1276 third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp:1276: return m_pluginTypes->subsumes(pluginTypesOther); This looks like it's checking the union ...
4 years ago (2016-12-13 13:54:48 UTC) #11
amalika
Addressing all the comments. Thank you for reviews! https://codereview.chromium.org/2562953002/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp File third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp (right): https://codereview.chromium.org/2562953002/diff/40001/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp#newcode1276 third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp:1276: return ...
4 years ago (2016-12-13 14:42:08 UTC) #13
Mike West
LGTM, thank you. https://codereview.chromium.org/2562953002/diff/80001/third_party/WebKit/Source/core/frame/csp/CSPDirectiveListTest.cpp File third_party/WebKit/Source/core/frame/csp/CSPDirectiveListTest.cpp (right): https://codereview.chromium.org/2562953002/diff/80001/third_party/WebKit/Source/core/frame/csp/CSPDirectiveListTest.cpp#newcode666 third_party/WebKit/Source/core/frame/csp/CSPDirectiveListTest.cpp:666: true}, On 2016/12/13 at 14:42:08, amalika ...
4 years ago (2016-12-13 14:45:26 UTC) #14
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/2562953002/80001
4 years ago (2016-12-14 12:04:54 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years ago (2016-12-14 12:10:05 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-14 12:14:09 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/573bf02ee895447c8b662e66e8bff8d4d1a14aad
Cr-Commit-Position: refs/heads/master@{#438486}

Powered by Google App Engine
This is Rietveld 408576698