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

Unified Diff: Source/web/WebRemoteFrameImpl.cpp

Issue 520213002: Make SecurityContext available in RemoteFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/web/WebRemoteFrameImpl.cpp
diff --git a/Source/web/WebRemoteFrameImpl.cpp b/Source/web/WebRemoteFrameImpl.cpp
index 8a00aaaa9f803a3a726ba6539b64e11182f71c48..9a9f81b65b32f6894fd5e99d09d6cf6e2d16b91a 100644
--- a/Source/web/WebRemoteFrameImpl.cpp
+++ b/Source/web/WebRemoteFrameImpl.cpp
@@ -849,4 +849,16 @@ void WebRemoteFrameImpl::initializeFromFrame(WebLocalFrame* source) const
localFrameImpl->frame()->view()->visibleContentScaleFactor());
}
+void WebRemoteFrameImpl::setReplicatedOrigin(const WebURL& origin, bool isUnique) const
alexmos 2014/11/11 23:44:25 I don't like that this is taking the isUnique flag
dcheng 2014/11/12 21:55:50 We would probably do the conversion in content. Th
alexmos 2014/11/18 18:35:18 Thanks, I talked to Charlie also and ended up doin
+{
+ ASSERT(frame());
+
+ WebSecurityOrigin securityOrigin;
+ if (isUnique)
+ securityOrigin = WebSecurityOrigin::createUnique();
+ else
+ securityOrigin = WebSecurityOrigin::create(origin);
+ frame()->securityContext()->setReplicatedOrigin(securityOrigin);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698