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

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: more rebase fixups 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_frame_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 15debe08d42f079668b8ce8611a0b4961d34cff4..ce268773717db9bfb059dcb6c77c2c381e47c06c 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2732,6 +2732,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(
@@ -4417,6 +4423,10 @@ void RenderFrameImpl::SendDidCommitProvisionalLoad(
params.should_enforce_strict_mixed_content_checking =
frame->shouldEnforceStrictMixedContentChecking();
+ params.has_potentially_trustworthy_unique_origin =
+ frame->document().getSecurityOrigin().isUnique() &&
+ frame->document().getSecurityOrigin().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));
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_frame_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698