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

Unified Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp

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: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
index 4fc20e1712723d26d0e3d1a352c04779a5c96f71..4c9062b5cf26e8d1d54ec8baaeba30abedab6a72 100644
--- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
@@ -695,6 +695,14 @@ void WebRemoteFrameImpl::setReplicatedShouldEnforceStrictMixedContentChecking(bo
frame()->securityContext()->setShouldEnforceStrictMixedContentChecking(shouldEnforce);
}
+void WebRemoteFrameImpl::setReplicatedPotentiallyTrustworthyUniqueOrigin(bool isUniqueOriginPotentiallyTrustworthy) const
+{
+ ASSERT(frame());
+ // If |isUniqueOriginPotentiallyTrustworthy| is true, then the origin must be unique.
+ ASSERT(!isUniqueOriginPotentiallyTrustworthy || frame()->securityContext()->securityOrigin()->isUnique());
+ frame()->securityContext()->securityOrigin()->setUniqueOriginIsPotentiallyTrustworthy(isUniqueOriginPotentiallyTrustworthy);
+}
+
void WebRemoteFrameImpl::DispatchLoadEventForFrameOwner() const
{
ASSERT(frame()->owner()->isLocal());

Powered by Google App Engine
This is Rietveld 408576698