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

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

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Get replication actually working; add layout tests Created 4 years, 1 month 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 21133e8fa487ba9e59ebd62792d11f3d3e7f9465..465675ec01d92a584bea504b200e79bbcd4d476e 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -857,6 +857,13 @@ void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame,
WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags));
}
+void FrameLoaderClientImpl::didSetFeaturePolicyHeader(
+ const String& headerValue) {
+ if (m_webFrame->client()) {
alexmos 2016/11/09 01:16:55 nit: { not needed
iclelland 2016/11/09 18:07:59 Done.
+ m_webFrame->client()->didSetFeaturePolicyHeader(headerValue);
+ }
+}
+
void FrameLoaderClientImpl::didAddContentSecurityPolicy(
const String& headerValue,
ContentSecurityPolicyHeaderType type,

Powered by Google App Engine
This is Rietveld 408576698