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

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

Issue 2655023004: Feature policy: Add basic algorithm for supporting frame policies. (Closed)
Patch Set: Addressing review comments Created 3 years, 10 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 7deb8ab7489f40eab42a8053545b4c5a5d97cf50..efbb7d00dbe4b6d9fdba4d3098a1dc0c7c18d85d 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 WebParsedFeaturePolicyHeader& 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