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

Issue 2655023004: Feature policy: Add basic algorithm for supporting frame policies. (Closed)

Created:
3 years, 11 months ago by iclelland
Modified:
3 years, 10 months ago
Reviewers:
raymes, pfeldman
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, lunalu1, blink-reviews, kinuko+watch, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Feature policy: Add basic algorithm for supporting frame policies. This allows a parsed policy from an iframe element to be used to influence the policy inherited by the framed document. BUG=682258 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2655023004 Cr-Commit-Position: refs/heads/master@{#451887} Committed: https://chromium.googlesource.com/chromium/src/+/de94fd8361c6d3c0af5e4cdf757594f80340f789

Patch Set 1 #

Patch Set 2 : Fix logic, add tests #

Total comments: 15

Patch Set 3 : Rebase; class names updated #

Patch Set 4 : Require default-off features to be enabled in parent for frame policy to have effect #

Patch Set 5 : Add frame policy to content-side code as well #

Total comments: 10

Patch Set 6 : Addressing review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+878 lines, -8 lines) Patch
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/common/feature_policy/feature_policy.h View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M content/common/feature_policy/feature_policy.cc View 1 2 3 4 5 3 chunks +29 lines, -1 line 0 comments Download
M content/common/feature_policy/feature_policy_unittest.cc View 1 2 3 4 2 chunks +369 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h View 1 2 3 4 5 3 chunks +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp View 1 2 3 4 5 2 chunks +29 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicyTest.cpp View 1 2 3 2 chunks +404 lines, -1 line 0 comments Download

Messages

Total messages: 37 (21 generated)
iclelland
+r raymes, PTAL; this is the algorithm for having the iframe attributes (of any sort) ...
3 years, 10 months ago (2017-01-27 19:42:52 UTC) #5
raymes
Thanks Ian! I guess this will be moved into the new content/ version of the ...
3 years, 10 months ago (2017-02-03 00:28:52 UTC) #8
iclelland
> I guess this will be moved into the new content/ version of > the ...
3 years, 10 months ago (2017-02-03 16:59:54 UTC) #9
raymes
Thanks! https://codereview.chromium.org/2655023004/diff/20001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp File third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp (right): https://codereview.chromium.org/2655023004/diff/20001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp#newcode166 third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp:166: parent->m_inheritedFeatures.get(feature)) { On 2017/02/03 16:59:54, iclelland wrote: > ...
3 years, 10 months ago (2017-02-03 18:11:28 UTC) #10
iclelland
https://codereview.chromium.org/2655023004/diff/20001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp File third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp (right): https://codereview.chromium.org/2655023004/diff/20001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp#newcode166 third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp:166: parent->m_inheritedFeatures.get(feature)) { On 2017/02/03 18:11:28, raymes wrote: > On ...
3 years, 10 months ago (2017-02-03 19:50:04 UTC) #11
iclelland
Raymes, can you take a look? I've added the corresponding code for the content side; ...
3 years, 10 months ago (2017-02-14 21:25:03 UTC) #15
raymes
On 2017/02/14 21:25:03, iclelland wrote: > Raymes, can you take a look? > > I've ...
3 years, 10 months ago (2017-02-16 10:38:47 UTC) #18
iclelland
On 2017/02/16 10:38:47, raymes wrote: > On 2017/02/14 21:25:03, iclelland wrote: > > Raymes, can ...
3 years, 10 months ago (2017-02-16 19:47:44 UTC) #19
raymes
lg - just nits https://codereview.chromium.org/2655023004/diff/80001/content/common/feature_policy/feature_policy.cc File content/common/feature_policy/feature_policy.cc (right): https://codereview.chromium.org/2655023004/diff/80001/content/common/feature_policy/feature_policy.cc#newcode182 content/common/feature_policy/feature_policy.cc:182: if (frame_policy) { nit: we ...
3 years, 10 months ago (2017-02-20 02:20:17 UTC) #20
iclelland
Thanks, raymes! +r pfeldman, can you PTAL as OWNER? https://codereview.chromium.org/2655023004/diff/80001/content/common/feature_policy/feature_policy.cc File content/common/feature_policy/feature_policy.cc (right): https://codereview.chromium.org/2655023004/diff/80001/content/common/feature_policy/feature_policy.cc#newcode182 content/common/feature_policy/feature_policy.cc:182: ...
3 years, 10 months ago (2017-02-21 19:51:05 UTC) #24
pfeldman
lgtm
3 years, 10 months ago (2017-02-21 19:55:00 UTC) #25
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/2655023004/100001
3 years, 10 months ago (2017-02-21 23:59:15 UTC) #29
raymes
lgtm thanks!
3 years, 10 months ago (2017-02-22 01:35:28 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-22 02:05:06 UTC) #32
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/2655023004/100001
3 years, 10 months ago (2017-02-22 03:54:25 UTC) #34
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 05:41:19 UTC) #37
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/de94fd8361c6d3c0af5e4cdf7575...

Powered by Google App Engine
This is Rietveld 408576698