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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.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/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 79980d3a15af98e7e09735ee6d2db57dea23669c..585c81a15b14e15fad2f0d2385d94f76a7c355bd 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -596,6 +596,11 @@ void FrameLoader::didBeginDocument() {
"Error with Feature-Policy header: " + message));
}
m_frame->document()->setFeaturePolicy(std::move(featurePolicy));
+ if (client()) {
+ client()->didSetFeaturePolicyHeader(
+ m_documentLoader->response().httpHeaderField(
+ HTTPNames::Feature_Policy));
+ }
Mike West 2016/11/08 12:12:23 An approach that you might wish to consider would
iclelland 2016/11/08 14:25:45 Since a frame can also set policy for itself -- it
}
}

Powered by Google App Engine
This is Rietveld 408576698