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

Unified Diff: content/renderer/render_frame_proxy.cc

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: 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: content/renderer/render_frame_proxy.cc
diff --git a/content/renderer/render_frame_proxy.cc b/content/renderer/render_frame_proxy.cc
index 8f429c68c4b94f2e76c960d3842550098535b48f..6e02e0173d20b8dad58099ccbb91057f3e980a33 100644
--- a/content/renderer/render_frame_proxy.cc
+++ b/content/renderer/render_frame_proxy.cc
@@ -226,6 +226,10 @@ void RenderFrameProxy::SetReplicatedState(const FrameReplicationState& state) {
web_frame_->setReplicatedInsecureRequestPolicy(state.insecure_request_policy);
web_frame_->setReplicatedPotentiallyTrustworthyUniqueOrigin(
state.has_potentially_trustworthy_unique_origin);
+ web_frame_->resetReplicatedContentSecurityPolicy();
raymes 2016/11/07 02:16:01 This calls the wrong thing by the looks of it!
iclelland 2016/11/07 03:37:03 Quite likely :) This is all very very WIP; not nea
+ for (const auto& header : state.feature_policy_headers)
+ web_frame_->addReplicatedFeaturePolicyHeader(
raymes 2016/11/07 02:16:01 Similarly here, I think we could just get rid of t
iclelland 2016/11/07 03:37:03 Agreed. Since the headers are already fully receiv
+ blink::WebString::fromUTF8(header));
web_frame_->resetReplicatedContentSecurityPolicy();
for (const auto& header : state.accumulated_csp_headers)

Powered by Google App Engine
This is Rietveld 408576698