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

Issue 2651883008: Make content::FeaturePolicy implement WebFeaturePolicy, and use it in blink code (Closed)

Created:
3 years, 11 months ago by iclelland
Modified:
3 years, 9 months ago
CC:
chromium-reviews, eae+blinkwatch, lunalu1, kinuko+watch, rwlbuis, jam, blink-reviews-dom_chromium.org, dglazkov+blink, darin-cc_chromium.org, gavinp+loader_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, loading-reviews_chromium.org, gogerald+paymentswatch_chromium.org, sof, rouslan+payments_chromium.org, Nate Chapin, tyoshino+watch_chromium.org, mlamouri+watch-blink_chromium.org, blink-reviews-api_chromium.org, mvanouwerkerk+watch_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make content::FeaturePolicy implement of WebFeaturePolicy, and use it in blink code This is part 4 of 5 in the effort to move the FeaturePolicy implementation into the content layer, which will facilitate use of the framework for browser- based policy decisions. See the other CLs in this series: [1/5] https://codereview.chromium.org/2648423002/ (Rename classes) [2/5] https://codereview.chromium.org/2654873004/ (Centralize content-side code) [3/5] https://codereview.chromium.org/2655663004/ (Maintain parallel FP in browser) [4/5] (This CL) (Use content/ FP in blink) [5/5] https://codereview.chromium.org/2656533004/ (Remove unused blink code.) BUG=685195 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2651883008 Cr-Commit-Position: refs/heads/master@{#454949} Committed: https://chromium.googlesource.com/chromium/src/+/4a6080201a29001f398861f94f8a473d646facd2

Patch Set 1 #

Patch Set 2 : Export symbols from blink platform correctly #

Patch Set 3 : Rebase #

Patch Set 4 : Update FP origin when document origin is updated during tests #

Patch Set 5 : Remove DCHECK, it's okay to call updateSecurityOrigin before FP created #

Patch Set 6 : Rebsae #

Patch Set 7 : Also update FP origin in PaymentRequestDetailsTest #

Patch Set 8 : Shrink the platform API to just "Is this feature enabled by policy" #

Patch Set 9 : Don't use BLINK_PLATFORM_EXPORT on enum class #

Patch Set 10 : Cleanup #

Total comments: 18

Patch Set 11 : Code review #

Patch Set 12 : Rebase, update to include container policies as well. #

Patch Set 13 : Rebasing intensifies... #

Total comments: 4

Patch Set 14 : Rebase some more #

Patch Set 15 : Move methods out of platform #

Patch Set 16 : Test through conditionalfeatures again #

Patch Set 17 : Duplicate FP object rather than modifying in-place #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -222 lines) Patch
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download
M content/child/blink_platform_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -0 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +22 lines, -0 lines 0 comments Download
M content/common/feature_policy/feature_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +15 lines, -10 lines 0 comments Download
M content/common/feature_policy/feature_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +36 lines, -12 lines 0 comments Download
M content/common/feature_policy/feature_policy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +20 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -4 lines 2 comments Download
M third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Fullscreen.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +15 lines, -5 lines 2 comments Download
D third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -134 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Frame.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp View 1 2 3 4 5 6 7 8 9 10 11 15 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -3 lines 1 comment Download
M third_party/WebKit/public/platform/Platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +23 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebFeaturePolicy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +13 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 103 (79 generated)
iclelland
+r raymes -- I forgot that this one wasn't actually sent, oops :( Can you ...
3 years, 10 months ago (2017-02-10 05:13:20 UTC) #38
raymes
Thanks Ian! https://codereview.chromium.org/2651883008/diff/180001/content/common/feature_policy/feature_policy.cc File content/common/feature_policy/feature_policy.cc (right): https://codereview.chromium.org/2651883008/diff/180001/content/common/feature_policy/feature_policy.cc#newcode141 content/common/feature_policy/feature_policy.cc:141: // https://crbug.com/690520 I put a question on ...
3 years, 10 months ago (2017-02-13 04:45:22 UTC) #45
iclelland
https://codereview.chromium.org/2651883008/diff/180001/content/common/feature_policy/feature_policy.cc File content/common/feature_policy/feature_policy.cc (right): https://codereview.chromium.org/2651883008/diff/180001/content/common/feature_policy/feature_policy.cc#newcode141 content/common/feature_policy/feature_policy.cc:141: // https://crbug.com/690520 On 2017/02/13 04:45:22, raymes wrote: > I ...
3 years, 10 months ago (2017-02-23 20:04:12 UTC) #52
iclelland
+r pfeldman, can you PTAL? Thanks!
3 years, 9 months ago (2017-02-27 16:19:04 UTC) #60
pfeldman
I can perform an owners review, but i'd prefer to see some l-g-t-m-s from reviewers ...
3 years, 9 months ago (2017-02-27 17:07:49 UTC) #61
iclelland
On 2017/02/27 17:07:49, pfeldman wrote: > I can perform an owners review, but i'd prefer ...
3 years, 9 months ago (2017-02-27 18:43:23 UTC) #62
raymes
lgtm but it would be nice to have more clarity on the below comment before ...
3 years, 9 months ago (2017-02-28 00:39:51 UTC) #63
raymes
On 2017/02/28 00:39:51, raymes wrote: > lgtm but it would be nice to have more ...
3 years, 9 months ago (2017-02-28 00:44:05 UTC) #64
iclelland
https://codereview.chromium.org/2651883008/diff/240001/third_party/WebKit/Source/core/dom/SecurityContext.cpp File third_party/WebKit/Source/core/dom/SecurityContext.cpp (right): https://codereview.chromium.org/2651883008/diff/240001/third_party/WebKit/Source/core/dom/SecurityContext.cpp#newcode120 third_party/WebKit/Source/core/dom/SecurityContext.cpp:120: m_featurePolicy.get(), WebSecurityOrigin(m_securityOrigin)); On 2017/02/28 00:39:51, raymes wrote: > This ...
3 years, 9 months ago (2017-02-28 05:25:56 UTC) #66
raymes
On 2017/02/28 05:25:56, iclelland wrote: > https://codereview.chromium.org/2651883008/diff/240001/third_party/WebKit/Source/core/dom/SecurityContext.cpp > File third_party/WebKit/Source/core/dom/SecurityContext.cpp (right): > > https://codereview.chromium.org/2651883008/diff/240001/third_party/WebKit/Source/core/dom/SecurityContext.cpp#newcode120 > ...
3 years, 9 months ago (2017-02-28 06:13:12 UTC) #67
dcheng
On 2017/02/28 05:25:56, iclelland wrote: > https://codereview.chromium.org/2651883008/diff/240001/third_party/WebKit/Source/core/dom/SecurityContext.cpp > File third_party/WebKit/Source/core/dom/SecurityContext.cpp (right): > > https://codereview.chromium.org/2651883008/diff/240001/third_party/WebKit/Source/core/dom/SecurityContext.cpp#newcode120 > ...
3 years, 9 months ago (2017-02-28 06:19:05 UTC) #68
dcheng
On 2017/02/28 06:19:05, dcheng wrote: > On 2017/02/28 05:25:56, iclelland wrote: > > > https://codereview.chromium.org/2651883008/diff/240001/third_party/WebKit/Source/core/dom/SecurityContext.cpp ...
3 years, 9 months ago (2017-02-28 06:19:21 UTC) #69
haraken
https://codereview.chromium.org/2651883008/diff/240001/content/child/blink_platform_impl.cc File content/child/blink_platform_impl.cc (right): https://codereview.chromium.org/2651883008/diff/240001/content/child/blink_platform_impl.cc#newcode869 content/child/blink_platform_impl.cc:869: return static_cast<const FeaturePolicy*>(policy)->IsFeatureEnabled(feature); Hmm, it looks a bit weird ...
3 years, 9 months ago (2017-02-28 06:41:43 UTC) #71
iclelland
On 2017/02/28 06:19:05, dcheng wrote: > On 2017/02/28 05:25:56, iclelland wrote: > > > https://codereview.chromium.org/2651883008/diff/240001/third_party/WebKit/Source/core/dom/SecurityContext.cpp ...
3 years, 9 months ago (2017-02-28 15:23:14 UTC) #72
iclelland
https://codereview.chromium.org/2651883008/diff/240001/content/child/blink_platform_impl.cc File content/child/blink_platform_impl.cc (right): https://codereview.chromium.org/2651883008/diff/240001/content/child/blink_platform_impl.cc#newcode869 content/child/blink_platform_impl.cc:869: return static_cast<const FeaturePolicy*>(policy)->IsFeatureEnabled(feature); On 2017/02/28 06:41:43, haraken wrote: > ...
3 years, 9 months ago (2017-02-28 21:02:39 UTC) #80
haraken
On 2017/02/28 21:02:39, iclelland wrote: > https://codereview.chromium.org/2651883008/diff/240001/content/child/blink_platform_impl.cc > File content/child/blink_platform_impl.cc (right): > > https://codereview.chromium.org/2651883008/diff/240001/content/child/blink_platform_impl.cc#newcode869 > ...
3 years, 9 months ago (2017-03-01 01:23:39 UTC) #83
iclelland
On 2017/03/01 01:23:39, haraken wrote: > On 2017/02/28 21:02:39, iclelland wrote: > > > https://codereview.chromium.org/2651883008/diff/240001/content/child/blink_platform_impl.cc ...
3 years, 9 months ago (2017-03-01 19:22:38 UTC) #88
iclelland
On 2017/03/01 19:22:38, iclelland wrote: > On 2017/03/01 01:23:39, haraken wrote: > > On 2017/02/28 ...
3 years, 9 months ago (2017-03-02 13:54:47 UTC) #93
haraken
Sorry about the review delay. LGTM. https://codereview.chromium.org/2651883008/diff/340001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h File third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h (right): https://codereview.chromium.org/2651883008/diff/340001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h#newcode25 third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h:25: CORE_EXPORT bool isFeatureEnabledInFrame(WebFeaturePolicyFeature, ...
3 years, 9 months ago (2017-03-04 07:36:01 UTC) #94
iclelland
pfeldman, can you take a look at this point? Thanks! https://codereview.chromium.org/2651883008/diff/340001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h File third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h (right): https://codereview.chromium.org/2651883008/diff/340001/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h#newcode25 ...
3 years, 9 months ago (2017-03-06 04:17:40 UTC) #95
iclelland
On 2017/03/06 04:17:40, iclelland wrote: > pfeldman, can you take a look at this point? ...
3 years, 9 months ago (2017-03-06 04:19:32 UTC) #96
pfeldman
content lgtm
3 years, 9 months ago (2017-03-06 18:05:37 UTC) #97
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/2651883008/340001
3 years, 9 months ago (2017-03-06 18:26:43 UTC) #100
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 20:48:20 UTC) #103
Message was sent while issue was closed.
Committed patchset #17 (id:340001) as
https://chromium.googlesource.com/chromium/src/+/4a6080201a29001f398861f94f8a...

Powered by Google App Engine
This is Rietveld 408576698