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

Unified Diff: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing review comments Created 3 years, 8 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/html/HTMLIFrameElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
index 3d8de52059e3a13e54c599edfd384fcbefb73f52..c58604cddcba2c973a70bf50e5b9cffcf2e86fa8 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
@@ -134,12 +134,15 @@ void HTMLIFrameElement::ParseAttribute(
kHTMLIFrameElementAllowfullscreenAttributeSetAfterContentLoad);
}
FrameOwnerPropertiesChanged();
+ UpdateContainerPolicy();
}
} else if (name == allowpaymentrequestAttr) {
bool old_allow_payment_request = allow_payment_request_;
allow_payment_request_ = !value.IsNull();
- if (allow_payment_request_ != old_allow_payment_request)
+ if (allow_payment_request_ != old_allow_payment_request) {
FrameOwnerPropertiesChanged();
+ UpdateContainerPolicy();
+ }
} else if (RuntimeEnabledFeatures::embedderCSPEnforcementEnabled() &&
name == cspAttr) {
// TODO(amalika): add more robust validation of the value
@@ -214,6 +217,7 @@ void HTMLIFrameElement::AllowValueWasSet() {
}
SetSynchronizedLazyAttribute(allowAttr, allow_->value());
FrameOwnerPropertiesChanged();
+ UpdateContainerPolicy();
}
ReferrerPolicy HTMLIFrameElement::ReferrerPolicyAttribute() {

Powered by Google App Engine
This is Rietveld 408576698