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

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

Issue 2739203002: Initial Implementation of Iframe Attribute for Feature Policy (Part 3) (Closed)
Patch Set: Bug fix: frame owner does not always exist. Created 3 years, 9 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 b4c89ae0d116cd08d630aaed42cf2490554b5df5..1ca14db925af94b2617274f91f6160fcdc484b7d 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.cpp
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
@@ -103,11 +103,9 @@ void SecurityContext::enforceSuborigin(const Suborigin& suborigin) {
void SecurityContext::initializeFeaturePolicy(
const WebParsedFeaturePolicy& parsedHeader,
+ const WebParsedFeaturePolicy& containerPolicy,
const WebFeaturePolicy* parentFeaturePolicy) {
DCHECK(!m_featurePolicy);
- // TODO(iclelland): Use the frame owner properties here to pass the frame
- // policy, if it exists.
- WebParsedFeaturePolicy containerPolicy;
WebSecurityOrigin origin = WebSecurityOrigin(m_securityOrigin);
m_featurePolicy.reset(Platform::current()->createFeaturePolicy(
parentFeaturePolicy, containerPolicy, parsedHeader, origin));

Powered by Google App Engine
This is Rietveld 408576698