Index: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
index 58d0410c0f97819b2c4f5a41663ef0ce7e2d2921..4910b3f0deb4c32eed5d9e905f031847affdc4b8 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
@@ -208,9 +208,7 @@ void HTMLFrameOwnerElement::SetSandboxFlags(SandboxFlags flags) { |
sandbox_flags_ = flags; |
// Recalculate the container policy in case the allow-same-origin flag has |
// changed. |
- container_policy_ = GetContainerPolicyFromAllowedFeatures( |
- AllowedFeatures(), AllowFullscreen(), AllowPaymentRequest(), |
- GetOriginForFeaturePolicy()); |
+ container_policy_ = ConstructContainerPolicy(); |
// Don't notify about updates if ContentFrame() is null, for example when |
// the subframe hasn't been created yet. |
@@ -234,9 +232,7 @@ void HTMLFrameOwnerElement::DisposeFrameOrPluginSoon( |
} |
void HTMLFrameOwnerElement::UpdateContainerPolicy() { |
- container_policy_ = GetContainerPolicyFromAllowedFeatures( |
- AllowedFeatures(), AllowFullscreen(), AllowPaymentRequest(), |
- GetOriginForFeaturePolicy()); |
+ container_policy_ = ConstructContainerPolicy(); |
// Don't notify about updates if ContentFrame() is null, for example when |
// the subframe hasn't been created yet. |
if (ContentFrame()) { |