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 3701006c9fe5ce2bd149e314f54818832022ef47..9e956903a26e651ea66d4c1b3b3acaba6a5a5507 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp |
@@ -30,6 +30,7 @@ |
#include "core/html/HTMLDocument.h" |
#include "core/inspector/ConsoleMessage.h" |
#include "core/layout/LayoutIFrame.h" |
+#include "platform/RuntimeEnabledFeatures.h" |
namespace blink { |
@@ -119,6 +120,11 @@ void HTMLIFrameElement::parseAttribute(const QualifiedName& name, const AtomicSt |
} else if (name == permissionsAttr) { |
if (initializePermissionsAttribute()) |
m_permissions->setValue(value); |
+ } else if (RuntimeEnabledFeatures::embedderCSPEnforcementEnabled() && name == cspAttr) { |
+ AtomicString oldCSP = m_csp; |
+ m_csp = value; |
+ if (m_csp != oldCSP) |
+ frameOwnerPropertiesChanged(); |
} else { |
if (name == srcAttr) |
logUpdateAttributeIfIsolatedWorldAndInDocument("iframe", srcAttr, oldValue, value); |