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

Unified Diff: third_party/WebKit/Source/core/dom/SecurityContext.cpp

Issue 2655023004: Feature policy: Add basic algorithm for supporting frame policies. (Closed)
Patch Set: Fix logic, add tests Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/SecurityContext.cpp
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.cpp b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
index dfce6551911360c73671df76b692b549be74aa97..14d425847b26cbb678d3634eacd1c9cb8b484d0e 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.cpp
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
@@ -103,8 +103,10 @@ void SecurityContext::setFeaturePolicyFromHeader(
const WebParsedFeaturePolicy& parsedHeader,
FeaturePolicy* parentFeaturePolicy) {
DCHECK(!m_featurePolicy);
- m_featurePolicy = FeaturePolicy::createFromParentPolicy(parentFeaturePolicy,
- m_securityOrigin);
+ // TODO(iclelland): Use the frame owner properties here to pass the frame
+ // policy, if it exists.
+ m_featurePolicy = FeaturePolicy::createFromParentPolicy(
+ parentFeaturePolicy, nullptr, m_securityOrigin);
m_featurePolicy->setHeaderPolicy(parsedHeader);
}

Powered by Google App Engine
This is Rietveld 408576698