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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1723753002: Make Document::isSecureContext() work for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alexmos comments Created 4 years, 9 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: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 82e5f3c7d7c56356a2a91f83b494eee776317cac..64c9a5a39b3e6f6086bc72889981c121c5eb8edc 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2786,6 +2786,12 @@ void RenderFrameImpl::didEnforceStrictMixedContentChecking() {
Send(new FrameHostMsg_EnforceStrictMixedContentChecking(routing_id_));
}
+void RenderFrameImpl::didUpdateToUniqueOrigin(
+ bool is_potentially_trustworthy_unique_origin) {
+ Send(new FrameHostMsg_UpdateToUniqueOrigin(
+ routing_id_, is_potentially_trustworthy_unique_origin));
+}
+
void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame,
blink::WebSandboxFlags flags) {
Send(new FrameHostMsg_DidChangeSandboxFlags(
@@ -4484,6 +4490,10 @@ void RenderFrameImpl::SendDidCommitProvisionalLoad(
params.should_enforce_strict_mixed_content_checking =
frame->shouldEnforceStrictMixedContentChecking();
+ params.has_potentially_trustworthy_unique_origin =
+ frame->document().securityOrigin().isUnique() &&
+ frame->document().securityOrigin().isPotentiallyTrustworthy();
+
// Set the URL to be displayed in the browser UI to the user.
params.url = GetLoadingUrl();
DCHECK(!is_swapped_out_ || params.url == GURL(kSwappedOutURL));

Powered by Google App Engine
This is Rietveld 408576698