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

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing CSP inheritance for srcdoc. Created 4 years, 7 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/web/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index e65f3c0337d42fc9790d2ef519d8f5f134cf04e4..5c5e7a12081cc554fbba6cdf1a69b7e210e70a10 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -936,6 +936,19 @@ void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag
m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags));
}
+void FrameLoaderClientImpl::didAddContentSecurityPolicy(
+ const String& headerValue,
+ ContentSecurityPolicyHeaderType type,
+ ContentSecurityPolicyHeaderSource source)
+{
+ if (m_webFrame->client()) {
+ m_webFrame->client()->didAddContentSecurityPolicy(
+ headerValue,
+ static_cast<WebContentSecurityPolicyType>(type),
+ static_cast<WebContentSecurityPolicySource>(source));
+ }
+}
+
void FrameLoaderClientImpl::didChangeFrameOwnerProperties(HTMLFrameElementBase* frameElement)
{
if (!m_webFrame->client())

Powered by Google App Engine
This is Rietveld 408576698