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

Unified Diff: content/renderer/render_frame_proxy.cc

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). Created 4 years 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 fbb1c1718cdb1a5324ae325281e31f5b24d346c7..8ad06297b74186fedeea2c2c461a3358fbe28fe0 100644
--- a/content/renderer/render_frame_proxy.cc
+++ b/content/renderer/render_frame_proxy.cc
@@ -238,6 +238,8 @@ void RenderFrameProxy::SetReplicatedState(const FrameReplicationState& state) {
web_frame_->setReplicatedName(blink::WebString::fromUTF8(state.name),
blink::WebString::fromUTF8(state.unique_name));
web_frame_->setReplicatedInsecureRequestPolicy(state.insecure_request_policy);
+ web_frame_->setReplicatedInsecureNavigationsSet(
+ state.insecure_navigations_set);
web_frame_->setReplicatedPotentiallyTrustworthyUniqueOrigin(
state.has_potentially_trustworthy_unique_origin);
web_frame_->setReplicatedFeaturePolicyHeader(
@@ -295,6 +297,8 @@ bool RenderFrameProxy::OnMessageReceived(const IPC::Message& msg) {
OnResetContentSecurityPolicy)
IPC_MESSAGE_HANDLER(FrameMsg_EnforceInsecureRequestPolicy,
OnEnforceInsecureRequestPolicy)
+ IPC_MESSAGE_HANDLER(FrameMsg_EnforceInsecureNavigationsSet,
+ OnEnforceInsecureNavigationsSet)
IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
OnSetFrameOwnerProperties)
IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateOrigin, OnDidUpdateOrigin)
@@ -381,6 +385,11 @@ void RenderFrameProxy::OnEnforceInsecureRequestPolicy(
web_frame_->setReplicatedInsecureRequestPolicy(policy);
}
+void RenderFrameProxy::OnEnforceInsecureNavigationsSet(
+ const std::vector<uint32_t>& set) {
+ web_frame_->setReplicatedInsecureNavigationsSet(set);
+}
+
void RenderFrameProxy::OnSetFrameOwnerProperties(
const FrameOwnerProperties& properties) {
web_frame_->setFrameOwnerProperties(properties.ToWebFrameOwnerProperties());

Powered by Google App Engine
This is Rietveld 408576698